Comments (3)
Could you provide information on how to reproduce the issue?
from morphic.
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".
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.
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".
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)
- Latest YouTube videos HOT 4
- Math answer
- Use SearchXNG HOT 1
- got an error during the build HOT 3
- [BUG] USE_SPECIFIC_API_FOR_WRITER=true is no longer being used
- Application error-client side exception occured. Image URL. HOT 2
- Edit customized search engine HOT 2
- how to not use tool HOT 1
- Suggests to provide a APP
- Modify history to a client component
- answer edit in history
- feat: Ollama Support HOT 3
- Using Google Provider has issues HOT 5
- Provide local Search API option HOT 1
- [BUG] <Deployment on Vercel> HOT 2
- Error with some queries HOT 2
- Share functionlay has changed ? HOT 3
- Feature request: Implement image analysis functionality HOT 1
- Enhancement: delete individual history
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from morphic.