Closed dfenske closed 5 years ago
Can you please tell me if you have found any solution to this problem, I am facing the same problem.
firewall was the cause of my problem.
No solution for me yet. I don't think firewall is an issue for me either.
My team is also having this issue. Is is possible there might be a problem with disposing sockets? From what I have found, there is a limit on sockets you can open, so if a socket is disposed but there is a problem and another one is opened, after a few days, you reach the limit of sockets and errors occur. Just an hypothesis, nothing for sure.
If anyone finds a solution, would be great :)
Thanks for contacting us. We're closing this issue as this doesn't align with our long-term plans in this area. You can read more details about our vision for this area at https://github.com/aspnet/AspNetCore/issues/12890.
(Also posted on Stack Overflow)
I have a .NET Core + React app using aspnet-prerendering. I created the app using dotnet new reactredux. I published this to Azure, and routed to that app using AWS CloudFront.
The app has worked in all environments (locally, CI, prestaging...) but when I deployed it to production, it worked for a few days and then I started getting a lot of
An attempt was made to access a socket in a way forbidden by its access permissions
errors. This is happening when a POST is made to127.0.0.1:<randomPort>
. I do not make this POST in my code, and I've been told it has to do with how react is prerendered. These errors usually only start about 1-2 days after deploying. So when I first deploy, everything looks good, but then when the errors start, they continue until I re-deploy or restart the app in Azure.Things I've tried:
ASPNETCORE_ENVIRONMENT=Production
. This did not solve the problem.A sample list of the ports that fail vs. succeed (seemingly random...?):
Code snippets:
Startup:
Index.cshtml
Package.json
NOTE: I have a boot-server and a boot-client, as well as a server webpack config and a client webpack config. This is due to differing needs for server/client compilation.
Boot-server.js
Boot-client.js
Webpack.config.js
Webpack.config.server.js
My question is - Why is this happening? How do I prevent it?