Closed MarioStipetic closed 1 year ago
@MarioStipetic I will transfer this to the CLI repo so they can assist you better
Hey @MarioStipetic :wave: thanks for raising this! As we begin to look into this in more depth, can you clarify whether the AMPLIFY_GOOGLE_*
environment variables are added to Amplify Hosting?
hi @josefaidt
yes, thank you! I managed to fix the issue by reading those two pages: https://github.com/aws-amplify/amplify-js/issues/7194 https://ntalam.com/2022/02/10/aws-amplify-error-headless-is-missing-the-following-inputparams/
Here is the solution:
In my opinion, this is a bug; why does Amplify automatically not add those environment variables?
How would I supposed to know that?
I never heard about that, lost one day because of this AWS Amplify bug.
Hey @MarioStipetic glad to hear that resolved the issue for you, and apologies for the rough experience! I agree with you in that this should be a smoother experience, and as such I've added the ops-auth
label to this to track this pain point alongside our efforts to improve this workflow!
For now, I'll close this issue in favor of tracking some of our existing items under the auth
and ops-auth
labels.
Before opening, please confirm:
JavaScript Framework
React
Amplify APIs
Authentication
Amplify Categories
auth
Environment information
Describe the bug
Getting the following error when trying to build the app "There was an issue connecting to your repo provider, click "Reconnect repository" in General Settings, and then try your build again.".
When I remove Google Authentication everything works fine, I can build the app.
I make a amplify pull request with every Google Authentication change
Two days ago, the similar build error appear (I had both googleAppIdUserPool, googleAppSecretUserPool added to the Studio Authenticate section) : "2023-01-25T23:12:23.088Z [WARNING]: - Building resource xxxxx 2023-01-25T23:12:23.178Z [WARNING]: ✔ Successfully pulled backend environment dev from the cloud. 2023-01-25T23:12:23.191Z [WARNING]: ✖ There was an error initializing your environment. 2023-01-25T23:12:23.200Z [INFO]: 🛑 Could not initialize categories for 'dev': auth headless is missing the following inputParams googleAppIdUserPool, googleAppSecretUserPool 2023-01-25T23:12:23.200Z [INFO]: Resolution: Review the error message and stack trace for additional information. Learn more at: https://docs.amplify.aws/cli/project/troubleshooting/"
Expected behavior
I want to be able to use the Google Amplify oAuth and build the app!
Reproduction steps
Code Snippet
Log output
aws-exports.js
const awsmobile = { "aws_project_region": "us-east-1", "aws_appsync_graphqlEndpoint": "xxxxxxx, "aws_appsync_region": "us-east-1", "aws_appsync_authenticationType": "API_KEY", "aws_appsync_apiKey": "xxxxxxxx", "aws_cognito_identity_pool_id": "xxxxxxx", "aws_cognito_region": "us-east-1", "aws_user_pools_id": "xxxxxx", "aws_user_pools_web_client_id": "xxxxxxxx", "oauth": { "domain": "xxxxxxx", "scope": [ "phone", "email", "openid", "profile", "aws.cognito.signin.user.admin" ], "redirectSignIn": "https://xxx/signin-success", "redirectSignOut": "https://xxx/signout", "responseType": "code" }, "federationTarget": "COGNITO_USER_POOLS", "aws_cognito_username_attributes": [ "EMAIL" ], "aws_cognito_social_providers": [ "GOOGLE" ], "aws_cognito_signup_attributes": [ "EMAIL" ], "aws_cognito_mfa_configuration": "OFF", "aws_cognito_mfa_types": [ "SMS" ], "aws_cognito_password_protection_settings": { "passwordPolicyMinLength": 6, "passwordPolicyCharacters": [] }, "aws_cognito_verification_mechanisms": [ "EMAIL" ] };
export default awsmobile;
Manual configuration
No response
Additional configuration
No response
Mobile Device
No response
Mobile Operating System
No response
Mobile Browser
No response
Mobile Browser Version
No response
Additional information and screenshots
No response