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

key already used returns status code 200 #93

Open
quantombone opened this issue Aug 13, 2015 · 0 comments
Open

key already used returns status code 200 #93

quantombone opened this issue Aug 13, 2015 · 0 comments

Comments

@quantombone
Copy link
Member

When trying to activate using REST API, there is a status code of 200 returned, even when the message says "error":"key already used"

curl -v -X POST -d '{"email":"tomactivate"}' https://vmx-docker-test.vision.ai/activate/d89a69dd-e4f6-4fcd-ad8a-1ff6d5d1054a
* Adding handle: conn: 0x7fd04a804000
* Adding handle: send: 0
* Adding handle: recv: 0
* Curl_addHandleToPipeline: length: 1
* - Conn 0 (0x7fd04a804000) send_pipe: 1, recv_pipe: 0
* About to connect() to vmx-docker-test.vision.ai port 443 (#0)
*   Trying 104.131.188.60...
* Connected to vmx-docker-test.vision.ai (104.131.188.60) port 443 (#0)
* TLS 1.2 connection using TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256
* Server certificate: *.vision.ai
* Server certificate: COMODO RSA Domain Validation Secure Server CA
* Server certificate: COMODO RSA Certification Authority
* Server certificate: AddTrust External CA Root
> POST /activate/d89a69dd-e4f6-4fcd-ad8a-1ff6d5d1054a HTTP/1.1
> User-Agent: curl/7.30.0
> Host: vmx-docker-test.vision.ai
> Accept: */*
> Content-Length: 23
> Content-Type: application/x-www-form-urlencoded
>
* upload completely sent off: 23 out of 23 bytes
< HTTP/1.1 200 OK
* Server nginx/1.9.2 is not blacklisted
< Server: nginx/1.9.2
< Date: Thu, 13 Aug 2015 19:10:23 GMT
< Content-Type: application/json; charset=utf-8
< Content-Length: 28
< Connection: keep-alive
< Set-Cookie: _SESSION=Jxk+ffMAa7qrNyXZO7eVwN222iqWR2+Xe5ga63WcAnuBN908Lt88E4XJ3jfgc7Qg1qdYaGawdCSVgrIQ3KghDpWK8jq03gESataUIzt5WJtBTlrJ0taRVlbbIFZ5zyIOVSgAr9MM54s=; Path=/; Expires=Thu, 13-Aug-2015 21:10:21 GMT; HttpOnly
< Vary: Accept, Accept-Language
< Access-Control-Allow-Origin: *
< Strict-Transport-Security: max-age=31536000
<
* Connection #0 to host vmx-docker-test.vision.ai left intact
{"error":"key_already_used"}%
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

1 participant