-
Notifications
You must be signed in to change notification settings - Fork 31
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
Amplify Studio throws error - Resource name should be alphanumeric #1051
Comments
Hey @MitchellNeill, thank you for reaching out. The resourceName normally should not have the |
Hi @ykethan this was the first time adding an API to the project and It was added from the CLI and pushed. I don't believe I picked a custom name or anything. I can see that the text "crewedmaritime-dev" in my .gpaphqlconfig file: The above file should be the new file created from the amplify CLI, and I also used the amplify codegen to generate some of the files while adding it, if that impacts anything. I can also see some occurrences in my team-provider-info.json file, but this file is an old file that has not recently changed, other than an S3 key. When I run "amplify upgrade api" it prints the following:
I haven't been able to reproduce it so far. |
Hmm I deleted my functions, and apis to try to fix it and it took my data models and database tables with it. The problem has stopped since there aren't any apis now. I'll try and recreate them slowly to see if I can reproduce the issue before closing. |
@MitchellNeill thank you for the information. Try re-creating this in a windows environment and changes to the API files but did not observe this behavior. |
|
Before opening, please confirm:
App Id
d1bryg0uoopcub
Region
ap-southeast-2
Environment name
dev
Figma File Version (if applicable)
na
Amplify CLI Version
12.6.0
If applicable, what version of Node.js are you using?
v19.9.0
What operating system are you using?
Windows (WSL2 Ubuntu)
Browser type?
Firefox, Chrome
Describe the bug
On loading amplify Studio, I can no longer see any of my data models displayed. Looking at the console and refreshing the page while on a tab that is not the data models page (such as the content tab), I can see a number of 400 errors in the console:
I don't believe my project name has changed, request payload for each of the above was:
{"resourceName":"crewedmaritime-dev"}
Which looks accurate. I believe the -dev is added to my project name as it is in the dev environment.
Expected behavior
Expect the console to be free of error messages and for the Data tab in amplify studio to display the data models.
Reproduction steps
unsure, creating a new application "test" results in the following payload being sent:
"{"resourceName":"staging"}" and results in no 400 errors as it does not contain a -
Project Identifier
6a01204c2bcf8a9af3d686724cc4b974
Additional information
This all ocured after adding a graphql API for the first time and may have to do with permissions. I can see a number of warnings Source map error: Error: request failed with status 403 but I cannot be sure they are related. Either way the 400 error is strange.
The text was updated successfully, but these errors were encountered: