Code Monkey home page Code Monkey logo

Comments (3)

techcontributor avatar techcontributor commented on August 15, 2024 1

Could you provide information on how to reproduce the issue?

from morphic.

Pathfainder avatar Pathfainder commented on August 15, 2024

Got the same issue just randomly searching, it doesn't crash imediately.
It shows the first usual result, then it crashes if i wait long enough (matter of seconds) or click on a link or "follow up".

My deployment

Here is GPT4-o response from chrome's error console logs :


Console Errors Breakdown:

net::ERR_CONNECTION_REFUSED for POST http://localhost:5000/transcribe

Cause:
This error indicates that the client attempted to send a POST request to http://localhost:5000/transcribe, but the connection was refused. This often happens if the server at localhost:5000 is not running or is not accepting connections on the specified port.

Solution:
Ensure that the server at localhost:5000 is running and listening for requests. Check if the server has started successfully without errors.

Mixed Content Warning

Cause:
The page at https://ai-search-engine-three.vercel.app/search/5nV6Iub was loaded over HTTPS, but it requested a resource (http://www.discusmedia.com/upload/resize_cache/iblock/...jpg) over HTTP. This leads to a mixed content warning.

Solution:
Serve all content over HTTPS to avoid mixed content issues. Ensure all resources (images, scripts, etc.) are loaded using HTTPS.

Uncaught (in promise) TypeError: Failed to fetch in content.js:9:21

Cause:
This error occurs when the fetch API fails to complete the request. The likely reason is the same ERR_CONNECTION_REFUSED as mentioned earlier.

Solution:
Resolve the server connection issue. Also, ensure the URL is correct and the server is reachable.

Error: Connection closed in 23-b09ef3d5f7e8b04a.js:2:17735

Cause:
This error indicates that a connection was established but then closed unexpectedly. This could be due to various reasons including server-side issues, network problems, or client-side interruptions.

Solution:
Investigate the server logs to understand why the connection was closed. Ensure the server is stable and not experiencing crashes or abrupt terminations.


Not a dev myself so I do not have the skills to fix or even understand this yet but here GPT's suggestions :


Check Server Status:

Ensure the server at localhost:5000 is running without errors.
Restart the server and observe any error messages in the server logs.

Upgrade to HTTPS:

Ensure all external resources are served over HTTPS to avoid mixed content warnings.
Update URLs in your codebase to use HTTPS.

Network Configuration:

Verify network settings to ensure there are no firewall or proxy issues blocking the connection to localhost:5000.
Debugging Fetch API:

Use browser developer tools to inspect the network request and responses.
Ensure the fetch call is correctly formed and the server endpoint is correct.
Review Server Logs:

Check server logs for any indication of why the connection might be closed unexpectedly.
Look for patterns or frequent errors that could indicate a server-side issue.


I tried to redeploy, create a new vercel project with new db but I encountered the same issue each time.
I still have a working previous deployment here from 2 days ago but i cannot deploy it again due to my free plan on vercel (too old) and Instant Rollback and Promote didn't work at all on vercel's side.
I do not have change anything that I did not undo when it starts crashing. (just modified the page.tsx and reversed to original).

Hope this is clear ! If anyone can help !

Many thanks from France ! ;)

from morphic.

nathan0411 avatar nathan0411 commented on August 15, 2024

Got the same issue just randomly searching, it doesn't crash imediately. It shows the first usual result, then it crashes if i wait long enough (matter of seconds) or click on a link or "follow up".

My deployment

Here is GPT4-o response from chrome's error console logs :

Console Errors Breakdown:

net::ERR_CONNECTION_REFUSED for POST http://localhost:5000/transcribe

Cause: This error indicates that the client attempted to send a POST request to http://localhost:5000/transcribe, but the connection was refused. This often happens if the server at localhost:5000 is not running or is not accepting connections on the specified port.

Solution: Ensure that the server at localhost:5000 is running and listening for requests. Check if the server has started successfully without errors.

Mixed Content Warning

Cause: The page at https://ai-search-engine-three.vercel.app/search/5nV6Iub was loaded over HTTPS, but it requested a resource (http://www.discusmedia.com/upload/resize_cache/iblock/...jpg) over HTTP. This leads to a mixed content warning.

Solution: Serve all content over HTTPS to avoid mixed content issues. Ensure all resources (images, scripts, etc.) are loaded using HTTPS.

Uncaught (in promise) TypeError: Failed to fetch in content.js:9:21

Cause: This error occurs when the fetch API fails to complete the request. The likely reason is the same ERR_CONNECTION_REFUSED as mentioned earlier.

Solution: Resolve the server connection issue. Also, ensure the URL is correct and the server is reachable.

Error: Connection closed in 23-b09ef3d5f7e8b04a.js:2:17735

Cause: This error indicates that a connection was established but then closed unexpectedly. This could be due to various reasons including server-side issues, network problems, or client-side interruptions.

Solution: Investigate the server logs to understand why the connection was closed. Ensure the server is stable and not experiencing crashes or abrupt terminations.

Not a dev myself so I do not have the skills to fix or even understand this yet but here GPT's suggestions :

Check Server Status:

Ensure the server at localhost:5000 is running without errors. Restart the server and observe any error messages in the server logs.

Upgrade to HTTPS:

Ensure all external resources are served over HTTPS to avoid mixed content warnings. Update URLs in your codebase to use HTTPS.

Network Configuration:

Verify network settings to ensure there are no firewall or proxy issues blocking the connection to localhost:5000. Debugging Fetch API:

Use browser developer tools to inspect the network request and responses. Ensure the fetch call is correctly formed and the server endpoint is correct. Review Server Logs:

Check server logs for any indication of why the connection might be closed unexpectedly. Look for patterns or frequent errors that could indicate a server-side issue.

I tried to redeploy, create a new vercel project with new db but I encountered the same issue each time. I still have a working previous deployment here from 2 days ago but i cannot deploy it again due to my free plan on vercel (too old) and Instant Rollback and Promote didn't work at all on vercel's side. I do not have change anything that I did not undo when it starts crashing. (just modified the page.tsx and reversed to original).

Hope this is clear ! If anyone can help !

Many thanks from France ! ;)

Hi! It seems that your app is working correctly. May I ask how you were able to resolve the issue?

Thank you!

from morphic.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.