Ask a Question

Automock Intergration 401 Error

SOLVED
ejames17
New Contributor

Automock Intergration 401 Error

Hi, I am getting 401 errors using API Key auth strategy. Even after passing the same credentials set in my integration settings.

I've attached some screenshots

2 REPLIES 2
MConneely
Staff

@ejames17 ,

what response are you expecting to be returned?
Just to note our Auto-mocking documentation https://support.smartbear.com/swaggerhub/docs/integrations/api-auto-mocking.html/

 

If an operation has multiple response codes, the mock returns the response with the lowest status code. For example, if an operation has responses 201, 202 and 400, the mock returns the 201 response.

When using OpenAPI 3.0 wildcard response ranges, such as 4XX, the lowest code of that range is returned – in this example, 400.

 

Can you confirm that the response is not the lowest status code?

I was able to figure it out. For the mock server it seems I had to use auth
bearer token and not api auth.

--
Thanks,
Elliott James
Website: https://ejgiftcards.com
Phone: 646-233-2862
facebook: https://www.facebook.com/ejgiftcards/
cancel
Showing results for 
Search instead for 
Did you mean: