mapbox-unity-sdk icon indicating copy to clipboard operation
mapbox-unity-sdk copied to clipboard

Access Token Invalid

Open mizhdi opened this issue 8 years ago • 23 comments

Getting invalid token error.

mizhdi avatar Mar 27 '18 07:03 mizhdi

@mizhdi I deleted the picture as you shouldn't share your mapbox key publically like that. Have you checked it you copied it properly without any empty space at the begining or the end?

brnkhy avatar Mar 27 '18 08:03 brnkhy

@brnkhy May be Great Firewall (of China) caused this

mizhdi avatar Mar 27 '18 08:03 mizhdi

@mizhdi I'm not sure, I believe we have users in China but let's see if someone else knows better about this. Thanks for the report!

brnkhy avatar Mar 27 '18 08:03 brnkhy

@mizhdi any error messages in the console after entering your access token and pressing Submit?

wilhelmberg avatar Mar 27 '18 10:03 wilhelmberg

There is a problem with the company’s network and it’s done at home @BergWerkGIS

mizhdi avatar Mar 27 '18 23:03 mizhdi

The Token is sometimes valid and sometimes unvalid. In China .

SixGodZhang avatar Jun 28 '18 10:06 SixGodZhang

The problem is still there...trying from last 2 days, deleted my account and made a new one, but no luck...on unity SDK

ghost avatar Aug 10 '18 10:08 ghost

hey is there any solution for this problem yet??? I live in Venezuela and I have the same issue. another thing that I did was migrating from old mapbox to new mapbox but I don't think it's related

adrianjmejias avatar Aug 30 '18 23:08 adrianjmejias

@adrianjmejias In our place,it's maybe Great Wall,don‘t know if there is wall in Venezuela .But we use the offline map

SixGodZhang avatar Sep 04 '18 01:09 SixGodZhang

Have you solved this? I meet it as well. With the token being checked as invalid, I cannot continue my project.

chenaptx avatar Jan 26 '19 10:01 chenaptx

I set the HTTPS_proxy environment variable to http://{proxyIP}:{port} (with valid proxy of course) and that fixed it for me.

peter-hamilton-MOH avatar Mar 11 '19 15:03 peter-hamilton-MOH

Now it's happening to me now too here in Peru. And that's strange, because days before, it worked just fine. What may cause it?

Alvarden15 avatar May 28 '19 17:05 Alvarden15

Trying restarting Unity and also if you're behind a firewall setup your HTTPS_proxy environment variable. I've noticed I need to restart Unity every day or so - not sure what's going on there.

peter-hamilton-MOH avatar May 28 '19 17:05 peter-hamilton-MOH

I'm in the US. Same problem.

jefffhaynes avatar May 28 '19 23:05 jefffhaynes

Ukraine and US also facing this error. Created the new account with the new tokens but still get this error. Invalid Token" UserInfo={NSLocalizedFailureReason=Not Authorized

SergeyLibin avatar May 29 '19 12:05 SergeyLibin

I set the HTTPS_proxy environment variable to http://{proxyIP}:{port} (with valid proxy of course) and that fixed it for me.

Hey peter, I am kind of new to this, how would I go about doing this and in particular how would I create or find a valid proxy.

Thanks for the help.

Kind regards,

Jesse

StarKing777 avatar Oct 07 '19 08:10 StarKing777

Hey Jesse, if you're in a corporate/government environment talk with your network admin otherwise there's online services that you can google.

hdsb-on avatar Oct 07 '19 12:10 hdsb-on

Hey Jesse, if you're in a corporate/government environment talk with your network admin otherwise there's online services that you can google.

Hey there, thanks for your response, I am using this in my own personal capacity.

do you mean there are online services that can help me set up a proxy?

Kind regards,

Jesse

StarKing777 avatar Oct 07 '19 12:10 StarKing777

Yup - strange that you would need a proxy from your own personal connection though - unless you're in a country with a nation-wide firewall imposed on the citizens. Just google proxy services, and you'll find something - just remember though that the free ones are likely saving your data if you care about that

hdsb-on avatar Oct 07 '19 12:10 hdsb-on

Yup - strange that you would need a proxy from your own personal connection though - unless you're in a country with a nation-wide firewall imposed on the citizens. Just google proxy services, and you'll find something - just remember though that the free ones are likely saving your data if you care about that

Thanks a lot, I really appreciate you taking the time to educate me on this.

I am not even sure if I need a proxy but my MapBox SDK keeps telling me I have an invalid access token so I have spent the last two days trying to trouble shoot this.

I am using my phones hotspot connection for my PC so I wonder if that has anything to do with it.

Ill give that a try.

Kind regards,

Jesse

StarKing777 avatar Oct 07 '19 12:10 StarKing777