API: Access denied when attempting to accept a transfer
When attempting to accept a transfer via the API, access is denied even if the request comes from the CID of the facility ATM. I assume you will be able to see the specifics of the request from your end, but if you need them I can provide them here.
Comments (9)
-
-
http://image.prntscr.com/image/11b3bc0ec0f04afca2091d5f84dfd389.png -- notice data is empty.
-
reporter Hi Daniel,
I've been scratching my head about this ever since you posted that screenshot. I've used cURL a million times so I wasn't sure what was wrong. I took the liberty of creating a page on our website that JSON encodes anything it receives via a POST request and returns that. When I use the code I've written to post to THAT page, the data seems to go through fine. However, when I change the URL to the VATUSA API it doesn't work.
-
It's getting the data now.. are you still getting Access denied errors?
-
reporter Will let you know when we get another transfer. Do you have a test account you can request to transfer into our facility?
-
No, all accounts are VATSIM accounts. I didn't program a way to make a fake user so if I did it would get deleted as they don't exist in CERT.
-
reporter Still getting access denied.
-
Worked with Tim by email. Issue resolved and live.
-
- changed status to resolved
- Log in to comment
I'm showing no post data was sent to the API, so that's why it is failing.