Google's Code for running the tests on the api_server doesn't seem to work #730
Unanswered
TinotendaMakuza
asked this question in
Q&A
Replies: 1 comment
-
What was your command line to start your api_server? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
curl -X POST http://0.0.0.0:8000/apps/my_sample_agent/users/u_123/sessions/s_123
-H "Content-Type: application/json"
-d '{"state": {"key1": "value1", "key2": 42}}'
When I paste the above code as is, it returns a few errors, the first ones being
curl: (7) Failed to connect to 0.0.0.0 port 8000 after 0 ms: Could not connect to server
curl: (3) URL rejected: Bad hostname
The rest are about how -H and -d are not cmdlets etc
Below is some of what I have done in an attempt to get the code to work:
I am supposed to get a success message with a log of the session, but instead I keep getting the above error message in my terminals, and {"detail":"Not Found"} on the localhost:8000 and 127.0.0.1:8000, and "It looks like the webpage at http://0.0.0.0:8000/ might be having issues, or it may have moved permanently to a new web address." on 0.0.0.0:8000.
Beta Was this translation helpful? Give feedback.
All reactions