Postman returns either 401 Unauthorized, or when the request can be sent it returns as Failed, error
Postman reads the following, when I send runsync request from runpod tutorial (from generativelabs) json
"error": "Unexpected input. api_name is not a valid input option.\nUnexpected input. cfg_scale is not a valid input option.\nUnexpected input. email is not a valid input option.\nUnexpected input. negative_prompt is not a valid input option.\nUnexpected input. num_inference_steps is not a valid input option.\nUnexpected input. override_settings is not a valid input option.\nUnexpected input. prompt is not a valid input option.\nUnexpected input. restore_faces is not a valid input option.\nUnexpected input. sampler_index is not a valid input option.\nUnexpected input. seed is not a valid input option.\napi is a required input.\npayload is a required input.",
When I send request from ashleyk's worker a1111 json it always returns as 401 Unauthorized.
How can I solve?
11 Replies
Save your API key correctly
You can't use GenerativeLabs format requests with my worker, they are not compatible. Read the docs, it shows you how the JSON should look.
I'm sorry but I haven't found information on Postman in the docs. Just that after the worker is up, I can start making API calls
Postman collection is in the repo, read the docs, you clearly didn't bother reading them at all.
Do I need to configure the json besides importing it and pasting in the keys?
Cuz I imported it
You can't ask for help if you don't try to help yourself by reading the docs. I won't help you if you don't read the docs. Its completely and utterly unacceptable to ask for help when you never read the docs. Nobody has time for that.
But everytime I try to run something its 401 Unauthorized
I read the docs yesterday, and I got to the point of running but everytime I tried it read 401 Unauthorized
That means most likely that you're not using an API key at all, make sure the correct header is set as:
Bearer [API_KEY_HERE]
Like this?
Its set like this
Auth is set to get from parent
Parent's auth is set to API Key
WIth the API key added to key
Still 401 Unauth
It doesn't save automatically, you have to click the save button to save it.
yeah, you are right 😂 thank you!