Skip to content
This repository was archived by the owner on May 18, 2024. It is now read-only.

internet search not working #241

Closed
luciimon opened this issue Nov 16, 2023 · 3 comments
Closed

internet search not working #241

luciimon opened this issue Nov 16, 2023 · 3 comments

Comments

@luciimon
Copy link

An error occurred during the search request: 0, message='Attempt to decode JSON with unexpected mimetype: text/html; charset=utf-8', url=URL('https://ddg-api.herokuapp.com/search?query=...?&limit=0')

@luciimon luciimon changed the title internet not working internet search not working Nov 16, 2023
@elricsilverhandx
Copy link
Collaborator

When you make a call it will give an error. If you write this error, we will write you the solution.

@luciimon
Copy link
Author

luciimon commented Mar 7, 2024

{'message': 'Repl not found. If you believe this is a mistake, try logging in to Replit first.', 'name': 'NotFoundError', 'status': 404}

URL : https://ddg-api.awam.repl.co/api/search

ai_utils.py

if search_query is not None:
try:
async with aiohttp.ClientSession() as session:
async with session.get('https://ddg-api.awam.repl.co/api/search',
params={'query': search_query, 'maxNumResults': search_results_limit}) as response:
search = await response.json()

@elricsilverhandx
Copy link
Collaborator

{'message': 'Repl not found. If you believe this is a mistake, try logging in to Replit first.', 'name': 'NotFoundError', 'status': 404}

URL : https://ddg-api.awam.repl.co/api/search

ai_utils.py

if search_query is not None: try: async with aiohttp.ClientSession() as session: async with session.get('https://ddg-api.awam.repl.co/api/search', params={'query': search_query, 'maxNumResults': search_results_limit}) as response: search = await response.json()

API is down, we will create a new API connection in the next update.

@mishl-dev mishl-dev closed this as not planned Won't fix, can't repro, duplicate, stale Apr 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants