Hey @jackiegleason, this is super nonintuitive but the issue is the R. in the prompt. If you omit the period, it will work fine, I just tested it locally. I will try to find out why this is the case and see if we can improve the docs at all here. Thanks for asking this!
Having a similar problem when the search prompt includes a hyphen. It works if I remove the hyphen.
{
“error”: {
“code”: null,
“message”: “Not allowed to GET on /v1/images/generations. (HINT: Perhaps you meant to use a different HTTP method?)”,
“param”: null,
“type”: “invalid_request_error”
}
}
Yes, pls help me. I also encounter this error.
“error”: {
“code”: null,
“message”: “Not allowed to GET on /v1/images/generations. (HINT: Perhaps you meant to use a different HTTP method?)”,
“param”: null,
“type”: “invalid_request_error”
I’m also getting the same error for days now
And I’ve gone through my code over and over
everything running fine:
{
"error": {
"code": null,
"message": "Not allowed to GET on /v1/images/generations. (HINT: Perhaps you meant to use a different HTTP method?)",
"param": null,
"type": "invalid_request_error"
}
}
How to fix this error message?
Anybody knows how to fix this?
{
“error”: {
“code”: null,
“message”: “Not allowed to GET on /v1/images/generations. (HINT: Perhaps you meant to use a different HTTP method?)”,
“param”: null,
“type”: “invalid_request_error”
}
}
I’ve got the same issue!
Even when using POST, the API endpoint for images v1 responds with this same error claiming (incorrectly) that a GET request was made.
Attaching a screenshot of the GH issue I opened for it since I’m too tired to retype it out. The code is functionally identical to that from the documentation and the browser console is very clearly showing a POST request.
I even manually constructed the http request to ensure the POST method is set, same result. What on earth is happening here???