A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
I'm wondering if anyone from the Shopify API team can help us identify why we get this error in some REST API calls randomly.
I have a few different public Shopify apps that perform hundreds of API calls per minute across our customer's stores.
Occasionally we get the following error back when trying to perform various types of API calls:
[API] Invalid Username provided for Basic Auth API access
I have confirmed that the "Username" provided in the Basic Auth field (which is the app API Key) is valid at the time of the request.
If I re-run the API request it works, almost like the error was just a temporary blip.
Here are some request IDs where we received that error:
Feel free to DM me. Thanks!
Solved! Go to the solution
This is an accepted solution.
Hi @DanAtBonify
Does your application have logging for the full outgoing request including the authorization headers? Could you please confirm that the API key (username) is the same for failed and succeeded requests? I am seeing an error message in our logs indicating that it does not match the expected key. If you'd like, you can submit a more in depth support request through the partner dashboard under "Report an issue" including the API key(s) being used by your app(s). Please do *not* include the password.
Regards,
To learn more visit the Shopify Help Center or the Community Blog.
This is an accepted solution.
Hi @DanAtBonify
Does your application have logging for the full outgoing request including the authorization headers? Could you please confirm that the API key (username) is the same for failed and succeeded requests? I am seeing an error message in our logs indicating that it does not match the expected key. If you'd like, you can submit a more in depth support request through the partner dashboard under "Report an issue" including the API key(s) being used by your app(s). Please do *not* include the password.
Regards,
To learn more visit the Shopify Help Center or the Community Blog.
I am seeing an error message in our logs indicating that it does not match the expected key
Thank you! That helped me find the issue which was we were sending a different access token with the API Key.