lotas / contentful-graph

Visual representation of contentful content models in form of graphs
https://www.contentful.com/blog/2017/08/08/how-to-quickly-visualize-your-content-model/
MIT License
59 stars 6 forks source link

I'm getting status 403 #43

Open juanortiz10 opened 1 year ago

juanortiz10 commented 1 year ago

I'm trying to get my schema as usually do. But without updating anything I'm getting a bad token result, it stopped working today

  var error = new Error();
              ^

AccessTokenInvalid: {
  "status": 403,
  "statusText": "Forbidden",
  "message": "The access token you sent could not be found or is invalid.",
  "details": {},
  "request": {
    "url": "/spaces/jq8d65xjulgq",
    "headers": {
      "Accept": "application/json, text/plain, */*",
      "Content-Type": "application/vnd.contentful.management.v1+json",
      "X-Contentful-User-Agent": "sdk contentful-management.js/7.54.2; platform node.js/v16.0.0; os macOS/v16.0.0;",
      "Authorization": "Bearer ...BaWpw",
      "user-agent": "node.js/v16.0.0",
      "Accept-Encoding": "gzip"
    },
    "method": "get"
  },
  "requestId": "d95706be-c9b6-4cdb-9fc9-d7c1f6c91b11"
}

I have my env variables already set up

Could you help me w this?

lotas commented 1 year ago

Hey there! Does it happen all the time? Is it possible to get new tokens and try again? Maybe try using management first and then delivery tokens.

I checked their blog, and only found this entry regarding recent changes https://www.contentful.com/developers/changelog/#scheduling-pages-in-compose so not really sure if there were any signifcant changes. Could also be that token is indeed invalid, as the message says?