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

I'm getting status 403 #43

Open
juanortiz10 opened this issue Oct 6, 2022 · 1 comment
Open

I'm getting status 403 #43

juanortiz10 opened this issue Oct 6, 2022 · 1 comment

Comments

@juanortiz10
Copy link

juanortiz10 commented Oct 6, 2022

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
Copy link
Owner

lotas commented Oct 7, 2022

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?

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

2 participants