Closed isaaccarrington closed 6 months ago
Unhelpfully I am no longer able to reproduce this myself now. I spent some time looking at the cognito network requests in the browser in both safari and chrome and also creating a hosts entry, wondering if it could be domain name related. Then it started working.
@isaaccarrington, glad to hear you got it working! If you experience this issue further, let us know and we can reopen.
Before opening, please confirm:
JavaScript Framework
React, Next.js
Amplify APIs
Authentication
Amplify Version
v6
Amplify Categories
auth
Backend
Amplify CLI
Environment information
Describe the bug
fetchAuthSession as described in Manage Auth session with the Next.js Middleware returns
[Error: Network error]
Expected behavior
fetchAuthSession finds the auth session attached to the incoming request
Reproduction steps
npm run dev
go to serverside
Code Snippet
All the code is here - https://github.com/isaaccarrington/amplifyplayground Snippets:
Log output
aws-exports.js
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