BrasilAPI / BrasilAPI/cep-promise

Estou recebendo esse erro: XMLHttpRequest is not defined

Open
#270 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
3k
Forks
317
PR merge metrics
No merged PRs in 30d

Description

Alguém consegue me ajudar? Estou recebendo esse erro ao fazer a cotação

{
addressError: '{"name":"CepPromiseError","message":"Todos os serviços de CEP retornaram erro.","type":"service
_error","errors":[{"name":"ServiceError","message":"XMLHttpRequest is not defined","service":"correios"},{"name"
:"ServiceError","message":"XMLHttpRequest is not defined","service":"correios-alt"},{"name":"ServiceError","mess
age":"XMLHttpRequest is not defined","service":"viacep"},{"name":"ServiceError","message":"XMLHttpRequest is not
defined","service":"widenet"},{"name":"ServiceError","message":"XMLHttpRequest is not defined","service":"brasilapi"}]}'
}

Contributor guide

Open the contributing guide

Research direction

No source file, test, or entry point is named. Start by reproducing the CEP quotation in the Node.js environment and tracing the request path used by the listed services. Done means identifying why XMLHttpRequest is unavailable in that environment and defining a verified fix or documented usage requirement.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, nodejs
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.