-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Error: read ECONNRESET #2053
Comments
Please use our bug template when opening up an issue. We do not have enough information to resolve this one. |
Closing until additional details have been provided |
@Boumour Just gonna throw this in here, as I can see you are having an issue with the connection between the Next starter and server resetting. You most likely have some process running on port 9000 other than Medusa, could be something like |
@kasperkristensen the problem is not the port 9000 for example home page is working fine and fetching the products but the product page when you access to it you got this error TCP.onStreamRead (node:internal/stream_base_commons:220:20 on the browser also just to let you know the api service works fine on the server side but the nextjs you got the problem of ECONNRESET |
@Boumour Have you tried killing everything on port 9000? I just asking because every time someone has brought up this issue, it was due to them running two things on port 9000 simultaneously. And they had the exact same issue with the |
Just wanted to chime in and confirm what @kasperkristensen said, at least for my case. I was seeing similar ECONNRESET issues, and it turns out that |
wait - compiling...
event - compiled client and server successfully in 457 ms (1516 modules)
warn - Fast Refresh had to perform a full reload. Read more: https://nextjs.org/docs/basic-features/fast-refresh#how-it-works
wait - compiling /products/[handle] (client and server)...
warn - Fast Refresh had to perform a full reload. Read more: https://nextjs.org/docs/basic-features/fast-refresh#how-it-works
event - compiled client and server successfully in 217 ms (1673 modules)
wait - compiling /_error (client and server)...
event - compiled client and server successfully in 109 ms (1673 modules)
error - Error: read ECONNRESET
at TCP.onStreamRead (node:internal/stream_base_commons:220:20) {
type: 'Error',
config: {
transitional: {
silentJSONParsing: true,
forcedJSONParsing: true,
clarifyTimeoutError: false
},
transformRequest: [ null ],
transformResponse: [ null ],
timeout: 0,
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
headers: {
Accept: 'application/json',
'Content-Type': 'application/json',
'User-Agent': 'axios/0.24.0'
},
baseURL: 'http://localhost:9000',
raxConfig: {
retry: 3,
backoffType: 'exponential',
currentRetryAttempt: 3,
retryDelay: 100,
httpMethodsToRetry: [Array],
noResponseRetries: 2,
checkRetryAfter: true,
maxRetryAfter: 300000,
statusCodesToRetry: [Array]
},
method: 'get',
withCredentials: true,
url: '/store/products?limit=25',
json: true
},
code: 'ECONNRESET',
status: null,
page: '/products/[handle]'
}
The text was updated successfully, but these errors were encountered: