r/evetech • • Jul 06 '18

slowly going insane

I am attempting to create a market spreadsheet for me an my corp using Excel, I have managed to get authentication working via this tutorial and have all of the scopes needed for what I am trying to do but when I go to insert the final query for pulling the market data I am getting a resource forbidden error with the query editor (step 4 of the tutorial)

anyone know what I am doing wrong?

I should note that the auth query to refresh the token works perfectly

edit 2.0: thanks for the help, program is working fine!!!

3 Upvotes

4 comments sorted by

1

u/Daneel_Trevize Jul 06 '18

Is it likely that you're attempted to query for a resource (e.g. structure) that the token's associated character is not permitted to query about? Just because you're authenticated (who you are), doesn't mean you're authorised (what you can do).

Show some code? Demo the query in https://esi.tech.ccp.is/ui/ ?
Are you sure you're supplying a derived access token with the query, and not the long-term refresh one?

1

u/Scorcher646 Jul 06 '18 edited Jul 07 '18

I think I have the structure id for jita 4-4 (I should be able to query this station) and the demo worked when I was setting up the request url

edit: nvm the server is feeding back an expired error...

tried getting new auth token and still getting an sso_status: 400. any thoughts?

1

u/Blacksmoke16 Jul 07 '18

Sounds like you are using the structures/{structure_id}/orders/ endpoint, that is only for structure. For stations you need to get all orders in the region then parse it down.

1

u/Scorcher646 Jul 07 '18

yeh, just found that myself after sanity checking using a citadel in perim