API: Access denied when attempting to accept a transfer

Issue #55 resolved
Timothy Roden created an issue

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)

  1. Timothy Roden 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.

  2. Timothy Roden reporter

    Will let you know when we get another transfer. Do you have a test account you can request to transfer into our facility?

  3. Daniel Hawton

    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.

  4. Log in to comment