Skip to content
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

help { errno: -4077, code: 'ECONNRESET', syscall: 'read' } #426

Open
AAlimU opened this issue Jan 31, 2025 · 2 comments
Open

help { errno: -4077, code: 'ECONNRESET', syscall: 'read' } #426

AAlimU opened this issue Jan 31, 2025 · 2 comments

Comments

@AAlimU
Copy link

AAlimU commented Jan 31, 2025

[ './andy.json' ]
MindServer running on port 8080
Client connected
Registering agents: andy
Agents registered
Starting agent with profile: ./andy.json
Starting agent initialization with profile: ./andy.json
Initializing action manager...
Initializing prompter...
Using chat settings: { model: 'gpt-4o-mini', api: 'openai' }
Using embedding settings: { api: 'openai' }
Initializing history...
Initializing coder...
Initializing npc controller...
Initializing memory bank...
Initializing self prompter...
Initializing examples...
(node:21432) [DEP0040] DeprecationWarning: The punycode module is deprecated. Please use a userland alternative instead.
(Use node --trace-deprecation ... to show where the warning was created)
Error with embedding model, using word overlap instead: [RateLimitError: 429 You exceeded your current quota, please check your plan and billing details. For more information on this error, read the docs: https://platform.openai.com/docs/guides/error-codes/api-errors.
at new OpenAIError (file:///C:/Users/alim/Desktop/mindcraft-main/node_modules/openai/error.mjs:3:8)
at new APIError (file:///C:/Users/alim/Desktop/mindcraft-main/node_modules/openai/error.mjs:7:9)
at new RateLimitError (file:///C:/Users/alim/Desktop/mindcraft-main/node_modules/openai/error.mjs:98:8)
at APIError.generate (file:///C:/Users/alim/Desktop/mindcraft-main/node_modules/openai/error.mjs:59:20)
at OpenAI.makeStatusError (file:///C:/Users/alim/Desktop/mindcraft-main/node_modules/openai/core.mjs:286:25)
at OpenAI.makeRequest (file:///C:/Users/alim/Desktop/mindcraft-main/node_modules/openai/core.mjs:330:30)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async GPT.embed (file:///C:/Users/alim/Desktop/mindcraft-main/src/models/gpt.js:59:27)
at async Promise.all (index 6)
at async Examples.load (file:///C:/Users/alim/Desktop/mindcraft-main/src/utils/examples.js:50:13)] {
status: 429,
headers: {
'alt-svc': 'h3=":443"; ma=86400',
'cf-cache-status': 'DYNAMIC',
'cf-ray': '90a9407bbc2b7793-IST',
connection: 'keep-alive',
'content-length': '337',
'content-type': 'application/json; charset=utf-8',
date: 'Fri, 31 Jan 2025 11:09:51 GMT',
server: 'cloudflare',
'set-cookie': '__cf_bm=Tf7Lg7Fc_WD7ULiOGxKO_JdHiUgU9bmFtdj4zODetHg-1738321791-1.0.1.1-gXzq04EkLhOjtUjLcPlrAv9uF5oSeUkakmHDDZdu1BznB0Ar3fVD0oOF4yt4L2Qu.P1ecIB3ovi.9tdhhZyoYQ; path=/; expires=Fri, 31-Jan-25 11:39:51 GMT; domain=.api.openai.com; HttpOnly; Secure; SameSite=None, _cfuvid=oHWwWvBA3WokFqD6N_0EWaBUNfOS.sugawglNCu5ZkQ-1738321791496-0.0.1.1-604800000; path=/; domain=.api.openai.com; HttpOnly; Secure; SameSite=None',
'strict-transport-security': 'max-age=31536000; includeSubDomains; preload',
vary: 'Origin',
'x-content-type-options': 'nosniff',
'x-request-id': 'req_c6cbd496f14d5d651f6dedf347479ca8'
},
request_id: 'req_c6cbd496f14d5d651f6dedf347479ca8',
error: {
message: 'You exceeded your current quota, please check your plan and billing details. For more information on this error, read the docs: https://platform.openai.com/docs/guides/error-codes/api-errors.',
type: 'insufficient_quota',
param: null,
code: 'insufficient_quota'
},
code: 'insufficient_quota',
param: null,
type: 'insufficient_quota'
}
Error with embedding model, using word overlap instead: [RateLimitError: 429 You exceeded your current quota, please check your plan and billing details. For more information on this error, read the docs: https://platform.openai.com/docs/guides/error-codes/api-errors.
at new OpenAIError (file:///C:/Users/alim/Desktop/mindcraft-main/node_modules/openai/error.mjs:3:8)
at new APIError (file:///C:/Users/alim/Desktop/mindcraft-main/node_modules/openai/error.mjs:7:9)
at new RateLimitError (file:///C:/Users/alim/Desktop/mindcraft-main/node_modules/openai/error.mjs:98:8)
at APIError.generate (file:///C:/Users/alim/Desktop/mindcraft-main/node_modules/openai/error.mjs:59:20)
at OpenAI.makeStatusError (file:///C:/Users/alim/Desktop/mindcraft-main/node_modules/openai/core.mjs:286:25)
at OpenAI.makeRequest (file:///C:/Users/alim/Desktop/mindcraft-main/node_modules/openai/core.mjs:330:30)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async GPT.embed (file:///C:/Users/alim/Desktop/mindcraft-main/src/models/gpt.js:59:27)
at async Promise.all (index 5)
at async Examples.load (file:///C:/Users/alim/Desktop/mindcraft-main/src/utils/examples.js:50:13)] {
status: 429,
headers: {
'alt-svc': 'h3=":443"; ma=86400',
'cf-cache-status': 'DYNAMIC',
'cf-ray': '90a9407c1eccdb8b-IST',
connection: 'keep-alive',
'content-length': '337',
'content-type': 'application/json; charset=utf-8',
date: 'Fri, 31 Jan 2025 11:09:51 GMT',
server: 'cloudflare',
'set-cookie': '__cf_bm=wn.LmANzuUa1FYJndY3cAy56HdVyQ2ZQa4YG8lzsixQ-1738321791-1.0.1.1-vzxEadY_tmv.rJGh2B_U5VOJmfC80B8OJD0T6Ry5LehvO8wqbxCAB5x3UsuzjYX4j3PEDu8u_oqf3BvHqh4GHQ; path=/; expires=Fri, 31-Jan-25 11:39:51 GMT; domain=.api.openai.com; HttpOnly; Secure; SameSite=None, _cfuvid=vtmwH0oyL8AOnIdj_pDia1oddl1CcOZabYbap76WsKQ-1738321791527-0.0.1.1-604800000; path=/; domain=.api.openai.com; HttpOnly; Secure; SameSite=None',
'strict-transport-security': 'max-age=31536000; includeSubDomains; preload',
vary: 'Origin',
'x-content-type-options': 'nosniff',
'x-request-id': 'req_415c972d54f30a71a6a13410e3e31f98'
},
request_id: 'req_415c972d54f30a71a6a13410e3e31f98',
error: {
message: 'You exceeded your current quota, please check your plan and billing details. For more information on this error, read the docs: https://platform.openai.com/docs/guides/error-codes/api-errors.',
type: 'insufficient_quota',
param: null,
code: 'insufficient_quota'
},
code: 'insufficient_quota',
param: null,
type: 'insufficient_quota'
}
Examples initialized.
Initializing task...
andy logging into minecraft...
{ errno: -4077, code: 'ECONNRESET', syscall: 'read' }
Client connected
Connected to MindServer
Client disconnected
Agent process exited with code 0 and signal null

@venkatmidhunmareedu
Copy link

venkatmidhunmareedu commented Jan 31, 2025

Error with embedding model, using word overlap instead: [RateLimitError: 429 You exceeded your current quota, please check your plan and billing details. For more information on this error, read the docs: https://platform.openai.com/docs/guides/error-codes/api-errors.
at new OpenAIError (file:///C:/Users/alim/Desktop/mindcraft-main/node_modules/openai/error.mjs:3:8)
at new APIError (file:///C:/Users/alim/Desktop/mindcraft-main/node_modules/openai/error.mjs:7:9)
at new RateLimitError (file:///C:/Users/alim/Desktop/mindcraft-main/node_modules/openai/error.mjs:98:8)
at APIError.generate (file:///C:/Users/alim/Desktop/mindcraft-main/node_modules/openai/error.mjs:59:20)

It seems your api limit has exceeded. Your open ai credits seems to be out.

You can do 2 things:

  • You buy credits from openAI. See here
  • You go to different provider like
    • Groq(Free but has limitations) see here
    • Gemini (Same as Groq) see here
    • Ollama (Free forever) see here
    • Others which are not recommended by me.

Ollama performs poor if your GPU and CPU are poor 👎.
Groq and Gemini are the best for top tier models.

Once you get the API key. insert the key in keys.json and open andy.json.

Models you have if you use :-

Embeddings :
I recommend using ollama embeddings (it uses less memory btw)

at last the config in the andy.json would be in this format: (my config for ollama btw :)

{
    "name": "andy",

    "model": {
	"api" : "ollama",
	"model" : "qwen2.5-coder:1.5b"
     },
     "embedding" : {
	"api" : "ollama",
	"model" : "nomic-embed-text:latest" 
     }
}

@AAlimU
Copy link
Author

AAlimU commented Feb 1, 2025

ok i know what to for ollama thx i have 64 gb ram rx 580 ryzen 7 5700X i think my pc is great ollama doesnt going to be a problem thx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants