aws-amplify / aws-amplify/amplify-data
Frequent WebSocket connection errors using Firefox
- Dominant language
- TypeScript
- Stars
- 18
- Forks
- 23
- Avg merge
- 26m
- Merged PRs (30d)
- 1
Description
### Before creating a new issue, please confirm:
- [x] I have [searched for duplicate or closed issues](https://github.com/aws-amplify/amplify-ui/issues?q=is%3Aissue+) and [discussions](https://github.com/aws-amplify/amplify-ui/discussions).
- [x] I have tried disabling all browser extensions or using a different browser
- [x] I have tried deleting the node_modules folder and reinstalling my dependencies
- [x] I have read the guide for [submitting bug reports](https://github.com/aws-amplify/amplify-ui/blob/main/CONTRIBUTING.md#bug-reports).
### On which framework/platform are you having an issue?
React
### Which UI component?
Other
### How is your app built?
Vite
### What browsers are you seeing the problem on?
Firefox
### Which region are you seeing the problem in?
us-west-2
### Please describe your bug.
I am getting an error that I don't know how to diagnose. I've built a chatbot using the AI Kit in Amplify 2, and it works great for the most part. The problem is, I simply cannot connect to my AppSync endpoint when using Firefox anymore. No HTTP error codes or anything. The only thing I see in the Dev console in Firefox is NS_ERROR_NET_RESET. Can someone please help? I have no additional status codes, metrics, errors, or logs to go off of other than what's displayed in the screenshot.
It doesn't appear I'm alone on this. Many users are reporting a similar issue here:
https://github.com/aws-samples/iam-identity-center-team/issues/396

### What's the expected behaviour?
This error should never occur with a valid session.
### Help us reproduce the bug!
Happens intermittently on multiple computers and networks. I'm not able to provide reliable reproduction steps. Clearing cache/cookies sometimes resolves the issue, sometimes doesn't.
### Code Snippet
```typescript
// Put your code below this line.
```
### Console log output
_No response_
### Additional information and screenshots
_No response_
Contributor guide
Research direction
No source file, test, or entry point is named. Start by reproducing the intermittent Firefox failure in the React/Vite app against the AppSync endpoint and inspect the Firefox console and available network details; done means identifying why NS_ERROR_NET_RESET occurs and confirming that a valid session connects reliably.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws, react, typescript, vite
- Domain
- api, networking
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100