-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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 prints out AuthError when NOT having Auth component #9771
Comments
@jamesaucode, could you provide your |
Similar issue for me with react-native app. I am using |
I'm still getting this. No Auth component, here's my package.json:
|
Hi James, The code is inside a try-catch and is there to make sure that the user is given UnAuth credentials. Although an error is being logged, the functionality is still the same. I have submitted a pull request to fix this issue (and another similar one) and remove the logging of the error when a user pool is not present. Thanks, |
Hi @stocaaro I see that you have closed the issue and the PR has been merged, any indication is the fix has already been released? If not, will it be in the next release? |
Hi @dreamorosi, This fix was released in the 2022-08-01 Amplify release: aws-amplify@4.3.30. Thanks, |
Before opening, please confirm:
JavaScript Framework
React
Amplify APIs
REST API
Amplify Categories
auth, api
Environment information
Describe the bug
Amplify JS version: "aws-amplify": "^4.3.17",
When setting up a Amplify React app WITHOUT Auth component, calling the API.get will print out the below error in browser console
Expected behavior
It should not print error in the browser console
Reproduction steps
Code Snippet
// Put your code below this line.
Log output
aws-exports.js
No response
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
The text was updated successfully, but these errors were encountered: