Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

405 Methods not allowed for the app inference.py #22

Closed
laifuchicago opened this issue Feb 12, 2020 · 1 comment
Closed

405 Methods not allowed for the app inference.py #22

laifuchicago opened this issue Feb 12, 2020 · 1 comment

Comments

@laifuchicago
Copy link

laifuchicago commented Feb 12, 2020

To author:
We have checked the inference.py , but there is "405 Methods not allowed" when we use GET , so we can only get the answer by using curl --request POST --url 'http:https://127.0.0.1:8000/finders/1/ask' --data '{"question": "My question"}'
Do you have any idea about that? Thank you.
Jonathan

@laifuchicago laifuchicago changed the title for the app inference.py 405 Methods not allowed for the app inference.py Feb 12, 2020
@tanaysoni
Copy link
Contributor

Hi @laifuchicago, the API endpoint only supports a HTTP POST request, hence you get an error when you try to use GET.

If you want to try out the API from command line, you can execute curl --request POST --url 'http:https://127.0.0.1:8000/finders/1/ask' --data '{"question": "My question"}'. You could also use tools like Postman to generate a POST request using a graphical interface.

masci pushed a commit that referenced this issue Nov 27, 2023
feat: enable `Any` in receiving sockets
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants