Skip to content
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

withPlausibleProxy server side networking issues #126

Closed
lemps opened this issue Jul 30, 2024 · 1 comment
Closed

withPlausibleProxy server side networking issues #126

lemps opened this issue Jul 30, 2024 · 1 comment

Comments

@lemps
Copy link

lemps commented Jul 30, 2024

We have tested plausible on our nextjs project for some time now and we've noticed a problem with it when using withPlausibleProxy

In our logs we noticed that our server often fails some requests and the page does not load properly. The request is seemingly to the BunnyCDN where https://plausible.io/js/script.js is hosted. I see two issues with this.

  1. When the request fails I would assume that the server would fail gracefully instead of logging errors and giving a 5xx response
  2. I would assume that this request is not done that often and the response would be cached within the server

Adding a log from the error we're getting:

Error: connect ETIMEDOUT 169.150.247.39:443
at createConnectionError (node:net:1648:14)
at Timeout.internalConnectMultipleTimeout (node:net:1707:38)
at listOnTimeout (node:internal/timers:583:11)
at process.processTimers (node:internal/timers:519:7) {
  errno: -110,
  code: 'ETIMEDOUT',
  syscall: 'connect',
  address: '169.150.247.39',
  port: 443
},
Error: connect ENETUNREACH 2400:52e0:1e00::1081:1:443 - Local (:::0)
at internalConnectMultiple (node:net:1182:16)
at Timeout.internalConnectMultipleTimeout (node:net:1712:5)
at listOnTimeout (node:internal/timers:583:11)
at process.processTimers (node:internal/timers:519:7) {
  errno: -101,
  code: 'ENETUNREACH',
  syscall: 'connect',
  address: '2400:52e0:1e00::1081:1',
  port: 443
}
@4lejandrito
Copy link
Owner

4lejandrito commented Aug 2, 2024

Hi! All withPlausibleProxy does is forwarding the script request to the plausible host via nextjs rewrites. As far as I know there is no caching. If your CDN is failing the failure is expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants