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

Altitude Angel Authentication/API Error in Latest Beta 1.3.77.1 Onwards #2935

Open
casrya opened this issue Aug 31, 2022 · 3 comments
Open

Comments

@casrya
Copy link

casrya commented Aug 31, 2022

Issue details

Altitude Angel Authentication/API Error in Latest Beta 1.3.77.1 Onwards

I have done some testing with the new plugin version of Altitude Angel in 1.3.77.1 beta and although the basics (signin, map overlays etc.) are working, flight planning fails with an HTTP status code "403 Forbidden" upon arm (I tested with two different email accounts just to be sure .. one gmail and one outlook).

Therefore, I did some debugging in the latest source code (cloned from github yesterday) as well as the AA Guardian API docs (https://docs.altitudeangel.com/docs/conflict-resolution-service) and found that the problem seems to be because the conflict resolution service wants an API key for authentication not the bearer token that is used for other services such as the flight reports used previously prior to the AA refactor (https://docs.altitudeangel.com/docs/flightreports).

To confirm I signed up for an AA demo key and tested and it works when I replace the .WithClient(Client) call with .WithHeader("Authorization", "X-AA-ApiKey YOUR_API_KEY_HERE") as per the AA API docs in the Flurl call at line 294 in AltitudeAngelClient.cs

Anyway, this might be a licensing issue rather than a code issue, or there could be some other issue with the authentication that I missed, but I wanted to report since hopefully this can be resolved since the demo keys only last 28 days and thus are not an ongoing solution :)

That said, for my modest non commercial use, the original flight reports are fine and I was really just playing with it for fun, so am mainly reporting as an FYI!

Cheers,

casrya

Version

1.3.77.1 Beta onwards

Platform

[ ] All
[ ] AntennaTracker
[X] Copter
[ ] Plane
[ ] Rover
[ ] Sub

Airframe type

X4

Hardware type

What autopilot hardware was used? (pixhawk, pixracer, PX4FMU etc)
SITL

Logs

N/A tested in code/debugger

@meee1
Copy link
Contributor

meee1 commented Sep 5, 2022

@rupertbenbrook

@rupertbenbrook
Copy link
Contributor

Thanks @meee1 and @casrya. I'll take a look, but it does sound like a permissions issue. We should still allow flight planning for users without specific subscriptions, but limited to reporting the plan.

@rupertbenbrook
Copy link
Contributor

@meee1 and @casrya, this issue should now be fixed once #3147 is merged into master. Apologies for the time it's taken to resolve.

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

3 participants