
I'm getting this error in the function
TypeScript
HTTPConnectionPool(host='localhost', port=80): Max retries exceeded with url: /v1//databases/63291eba/collections/663876a/documents?queries%5B0%5D=%7B%22method%22%3A%22equal%22%2C%22attribute%22%3A%22username%22%2C%22values%22%3A%5B%22test%22%5D%7D (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f0a6a382280>: Failed to establish a new connection: [Errno 111] Connection refused'))
TypeScript
try:
user = database.list_documents(
database_id, collection_id, [
Query.equal(
"username", username,)
])
except Exception as e:
context.log(f"Inside exception - 1\n{e}")
return context.res.send("False")
TL;DR
Developers are encountering an error when trying to list documents due to connection issues. The logs show warnings related to connection refusal. The problem seems to stem from the HTTPConnectionPool. One possible solution is to check the specified host and port.
logs:
TypeScript
2024-06-29 22:11:02
2024-06-29 22:11:02 Warning: fsockopen(): Unable to connect to 668067:3000 (Connection refused) in /usr/local/src/Executor/Validator/TCP.php on line 45
2024-06-29 22:11:02
2024-06-29 22:11:02 Warning: fsockopen(): Unable to connect to 6680391ce0767:3000 (Connection refused) in /usr/local/src/Executor/Validator/TCP.php on line 45
2024-06-29 22:11:03
2024-06-29 22:11:03 Warning: fsockopen(): Unable to connect to 6680391ce0767:3000 (Connection refused) in /usr/local/src/Executor/Validator/TCP.php on line 45```
Recommended threads
- Error 1.7.4 console team no found
In console when i go to auth, select user, select a membership the url not work. Only work searching the team. It is by the region. project-default- and i get ...
- Is Quick Start for function creation wor...
I am trying to create a Node.js function using the Quick Start feature. It fails and tells me that it could not locate the package.json file. Isn't Quick Start ...
- functions of 1.4 not work on 1.7
Hi, i updated of 1.4 to 1.7 but the function not work i get it error. Do I need to build and deploy the functions again?
