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

Using merge show command outputs an error #2680

Open
tth-nine opened this issue Jul 4, 2024 · 1 comment
Open

Using merge show command outputs an error #2680

tth-nine opened this issue Jul 4, 2024 · 1 comment

Comments

@tth-nine
Copy link

tth-nine commented Jul 4, 2024

Trying to show migration difference between my TOBIAS environment and dev environment and using the CLI outputs an error.
I can make the migration file and see the difference via the merge app in the contentful web app.

I have my .contenfulrc.json configured with all the correct values for spaceId and CMA token and I am an admin in my active space.


When i run:
contentful merge show --source-environment-id TOBIAS --target-environment-id dev-2024-06-21 --yes

I get this error in my terminal

Error: The resource could not be found.
{                                                                                                                                                                                                                                                                                                                   
   "status": 404,                                                                                                                                                                                                                                                                                                    
   "statusText": "Not Found",                                                                                                                                                                                                                                                                                        
   "message": "The resource could not be found.",                                                                                                                                                                                                                                                                    
   "details": "AppDefinition does not exist.",                                                                                                                                                                                                                                                                       
   "request": {                                                                                                                                                                                                                                                                                                      
     "url": "/spaces/<spaceId>/environments/TOBIAS/app_installations/undefined",                                                                                                                                                                                                                                  
     "headers": {                                                                                                                                                                
       "Accept": "application/json, text/plain, */*",
       "Content-Type": "application/vnd.contentful.management.v1+json",
       "X-Contentful-User-Agent": "app contentful.cli/3.3.3; sdk contentful-management-plain.js/11.27.4; platform node.js/v20.13.1; os macOS/v20.13.1;",
       "Authorization": "Bearer ...<token>",
       "User-Agent": "axios/1.6.8",
       "Content-Length": "17",
       "Accept-Encoding": "gzip, compress, deflate, br"
     },
     "method": "put",
     "payloadData": "{\"parameters\":{}}"
  }                                                                                                                                                                                                                                                    }

I can see in the web app that when using the merge app it uses this URL:
https://app.eu.contentful.com/spaces/<spaceId>/environments/TOBIAS/apps/app_installations/merge


Node version: 20.13.1
Contentful CLI version: 3.3.3
Contentful url: https://app.eu.contentful.com
PC: Apple M1 Pro
OS: MacOs Sononma Version 14.5

@olga-bonprix
Copy link

Same issue here. Most likely lies in missing support for eu website here:
https://github.com/contentful/contentful-cli/blob/main/lib/utils/app-actions-config.ts#L5

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