bureus / MMM-Vasttrafik-PublicTransport

Initial commit
9 stars 6 forks source link

Access Failure error(403) #13

Open nilsson1991 opened 3 years ago

nilsson1991 commented 3 years ago

Hi, i've followed all the steps in the tutorial. I've requested Access Key and Secret + added the API:s to My Applications etc. I dont get any errors in regards to the actual module so that seems to be set up correct.

The issue i get though: 6:51:10 PM MMM-Vasttrafik-PublicTransport: getTrafficSituation failed =StatusCodeError: 403 - {"fault":{"code":900908,"message":"Resource forbidden ","description":"Access failure for API: /ts/v1, version: v1"}}

6:51:10 PM MMM-Vasttrafik-PublicTransport: getDeparture failed =StatusCodeError: 403 - {"fault":{"code":900908,"message":"Resource forbidden ","description":"Access failure for API: /bin/rest.exe/v2, version: v2"}}

This seems strange since i've created an Application on Västtrafik developer portal specifik for this, added the API:s to the application and generated credentials(which i have inputed in my config).

So what could be wrong here?

bureus commented 3 years ago

Not really sure, but i agree with you that it feels like either A: something wrong in config and api, so ensure the config and API key is correct, B: missing permission for your application, but you stated that you have it. 403 means also I guess the the credential flow worked. Otherwise it think you will get 401.

bureus commented 3 years ago

@nilsson1991

Raavian commented 2 years ago

Hello i get the same error. Is there any solution yet?