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

Node 21 doesn't like mop #209

Open
skilesare opened this issue Feb 9, 2024 · 2 comments
Open

Node 21 doesn't like mop #209

skilesare opened this issue Feb 9, 2024 · 2 comments
Assignees
Labels

Comments

@skilesare
Copy link

Reverting to 20.11.0 fixes it.

mops install
(node:13250) [DEP0040] DeprecationWarning: The punycode module is deprecated. Please use a userland alternative instead.
(Use node --trace-deprecation ... to show where the warning was created)
Installing encoding@v0.4.1@2711d18727e954b11afc0d37945608512b5fbce2 [ ]
node:events:497
throw er; // Unhandled 'error' event
^

HTTPError: Response code 404 (Not Found)
at Request._onResponseBase (file:///opt/homebrew/lib/node_modules/ic-mops/node_modules/got/dist/source/core/index.js:706:31)
at Request._onResponse (file:///opt/homebrew/lib/node_modules/ic-mops/node_modules/got/dist/source/core/index.js:765:24)
at ClientRequest. (file:///opt/homebrew/lib/node_modules/ic-mops/node_modules/got/dist/source/core/index.js:783:23)
at Object.onceWrapper (node:events:634:26)
at ClientRequest.emit (node:events:531:35)
at HTTPParser.parserOnIncomingClient (node:_http_client:690:27)
at HTTPParser.parserOnHeadersComplete (node:_http_common:119:17)
at TLSSocket.socketOnData (node:_http_client:532:22)
at TLSSocket.emit (node:events:519:28)
at addChunk (node:internal/streams/readable:559:12)
Emitted 'error' event at:
at emitErrorNT (node:internal/streams/destroy:169:8)
at emitErrorCloseNT (node:internal/streams/destroy:128:3)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
input: undefined,
code: 'ERR_NON_2XX_3XX_RESPONSE',
timings: {
start: 1707513656245,
socket: 1707513656245,
lookup: 1707513656264,
connect: 1707513656310,
secureConnect: 1707513656359,
upload: 1707513656359,
response: 1707513656453,
end: 1707513656456,
error: undefined,
abort: undefined,
phases: {
wait: 0,
dns: 19,
tcp: 46,
tls: 49,
request: 0,
firstByte: 94,
download: 3,
total: 211
}
},
options: Options {
_unixOptions: undefined,
_internals: {
request: undefined,
agent: { http: undefined, https: undefined, http2: undefined },
h2session: undefined,
decompress: true,
timeout: {
connect: undefined,
lookup: undefined,
read: undefined,
request: undefined,
response: undefined,
secureConnect: undefined,
send: undefined,
socket: undefined
},
prefixUrl: '',
body: undefined,
form: undefined,
json: undefined,
cookieJar: undefined,
ignoreInvalidCookies: false,
searchParams: undefined,
dnsLookup: undefined,
dnsCache: undefined,
context: {},
hooks: {
init: [],
beforeRequest: [],
beforeError: [],
beforeRedirect: [],
beforeRetry: [],
afterResponse: []
},
followRedirect: true,
maxRedirects: 10,
cache: undefined,
throwHttpErrors: true,
username: '',
password: '',
http2: false,
allowGetBody: false,
headers: {
'user-agent': 'got (https://github.com/sindresorhus/got)',
'accept-encoding': 'gzip, deflate, br'
},
methodRewriting: false,
dnsLookupIpVersion: undefined,
parseJson: [Function: parse],
stringifyJson: [Function: stringify],
retry: {
limit: 2,
methods: [ 'GET', 'PUT', 'HEAD', 'DELETE', 'OPTIONS', 'TRACE' ],
statusCodes: [
408, 413, 429, 500,
502, 503, 504, 521,
522, 524
],
errorCodes: [
'ETIMEDOUT',
'ECONNRESET',
'EADDRINUSE',
'ECONNREFUSED',
'EPIPE',
'ENOTFOUND',
'ENETUNREACH',
'EAI_AGAIN'
],
maxRetryAfter: undefined,
calculateDelay: [Function: calculateDelay],
backoffLimit: Infinity,
noise: 100
},
localAddress: undefined,
method: 'GET',
createConnection: undefined,
cacheOptions: {
shared: undefined,
cacheHeuristic: undefined,
immutableMinTimeToLive: undefined,
ignoreCargoCult: undefined
},
https: {
alpnProtocols: undefined,
rejectUnauthorized: undefined,
checkServerIdentity: undefined,
certificateAuthority: undefined,
key: undefined,
certificate: undefined,
passphrase: undefined,
pfx: undefined,
ciphers: undefined,
honorCipherOrder: undefined,
minVersion: undefined,
maxVersion: undefined,
signatureAlgorithms: undefined,
tlsSessionLifetime: undefined,
dhparam: undefined,
ecdhCurve: undefined,
certificateRevocationLists: undefined
},
encoding: undefined,
resolveBodyOnly: false,
isStream: true,
responseType: 'text',
url: URL {},
pagination: {
transform: [Function: transform],
paginate: [Function: paginate],
filter: [Function: filter],
shouldContinue: [Function: shouldContinue],
countLimit: Infinity,
backoff: 0,
requestLimit: 10000,
stackAllItems: false
},
setHost: true,
maxHeaderSize: undefined,
signal: undefined,
enableUnixSockets: true
},
_merging: false,
_init: [ { isStream: true } ]
}
}

Node.js v21.6.1

@ZenVoich
Copy link
Owner

Can you share the full URL for that encoding package?

Did you use latest mops cli 0.39.2 with Node.js v21.6.1?

@ZenVoich ZenVoich self-assigned this Feb 12, 2024
@ZenVoich ZenVoich added the cli label Feb 12, 2024
@skilesare
Copy link
Author

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

No branches or pull requests

2 participants