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

Toggle autosync fail #80

Closed
sebastienbarbier opened this issue May 3, 2023 · 2 comments
Closed

Toggle autosync fail #80

sebastienbarbier opened this issue May 3, 2023 · 2 comments
Assignees
Labels
Milestone

Comments

@sebastienbarbier
Copy link
Owner

PATCh request on account return 404 not found.

curl 'https://api.seven23.io/api/v1/accounts/85cb16b9-d233-43ca-aa16-7ed4417974c4' -X PATCH -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/113.0' -H 'Accept: application/json, text/plain, */*' -H 'Accept-Language: en-US,en;q=0.5' -H 'Accept-Encoding: gzip, deflate, br' -H 'Content-Type: application/json' -H 'Authorization: Token a...b' -H 'Origin: http://localhost:3000' -H 'DNT: 1' -H 'Connection: keep-alive' -H 'Referer: http://localhost:3000/' -H 'Sec-Fetch-Dest: empty' -H 'Sec-Fetch-Mode: cors' -H 'Sec-Fetch-Site: cross-site' -H 'Pragma: no-cache' -H 'Cache-Control: no-cache' --data-raw '{"id":"85cb1db9-df53-43ba-aa26-7ed4417974c4","preferences":"e...w"}'

Return

* Mark bundle as not supporting multiuse
< HTTP/1.1 404 Not Found
< Server: nginx/1.21.3
< Date: Wed, 03 May 2023 17:12:16 GMT
< Content-Type: application/json
< Content-Length: 23
< Connection: keep-alive
< Vary: Accept, Origin
< Allow: GET, PUT, PATCH, DELETE, HEAD, OPTIONS
< X-Frame-Options: DENY
< Access-Control-Allow-Origin: *
< Sozu-Id: 01GZH9KD10CSBBNCTQRSJK7WSV
< 
* Connection #0 to host api.seven23.io left intact
{"detail":"Not found."}%
@sebastienbarbier sebastienbarbier added this to the v1.2.1 milestone May 3, 2023
@sebastienbarbier sebastienbarbier self-assigned this May 3, 2023
@sebastienbarbier
Copy link
Owner Author

API works as expected. Add a test for patch as previous one was only testing GET/POST/PUT/DELETE.
This request return 404 as account id is uuid and not integer. Looks like user sent account update for a local account. Should not be possible, might be a UI issue, will create ticket in seven23 repo.

@sebastienbarbier
Copy link
Owner Author

Will be handle as part of sebastienbarbier/seven23#109.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant