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

CLI does not work on EU residency projects #906

Open
CGiustiniani opened this issue May 15, 2024 · 1 comment
Open

CLI does not work on EU residency projects #906

CGiustiniani opened this issue May 15, 2024 · 1 comment

Comments

@CGiustiniani
Copy link

CGiustiniani commented May 15, 2024

I tried using the CLI on an EU residency project but always receive the following error

An authorisation issue occurred.

After some investigation I found out that the base url for both the cma & cda client are hardcoded to the standard contentful api urls

  • cdn.contentful.com &
  • api.contentful.com

see here

Therefor it does not work for EU residency projects as these use different urls (cdn.eu.contentful.com & api.eu.contentful.com)

This is not the first time this issue occurs, it seems that many of the tools around contentful are not yet supporting EU residency projects or the configuration of the base / api urls

I tried using the base contentful-cli instead (https://github.com/contentful/contentful-cli) which exposes a "host" parameter inside the config to migrate content.

At first it didnt work with the config file, but after using the login command and updating the .contentfulrc file with the correct values I managed to get it working

@mattmapadmi
Copy link

This has been added in #908

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