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

Got 404 error on a photo that has a few megabytes, but terminal outputs 0 MB #1

Open
brankoo124 opened this issue Nov 30, 2022 · 0 comments

Comments

@brankoo124
Copy link

brankoo124 commented Nov 30, 2022

`START C:\Users\toman\Media\GoPro Media Library v2/GOPR1324.JPG 0 MB (raw size)
node:internal/process/esm_loader:97
internalBinding('errors').triggerUncaughtException(
^

HTTPError: Response code 404 (Not Found)
at Request._onResponseBase (file:///C:/Users/toman/Documents/tech/htdocs/js/gopro-media-library-downloader/node_modules/got/dist/source/core/index.js:709:31)
at Request._onResponse (file:///C:/Users/toman/Documents/tech/htdocs/js/gopro-media-library-downloader/node_modules/got/dist/source/core/index.js:768:24)
at ClientRequest. (file:///C:/Users/toman/Documents/tech/htdocs/js/gopro-media-library-downloader/node_modules/got/dist/source/core/index.js:786:23)
at Object.onceWrapper (node:events:628:26)
at ClientRequest.emit (node:events:525:35)
at HTTPParser.parserOnIncomingClient (node:_http_client:693:27)
at HTTPParser.parserOnHeadersComplete (node:_http_common:117:17)
at TLSSocket.socketOnData (node:_http_client:534:22)
at TLSSocket.emit (node:events:513:28)
at addChunk (node:internal/streams/readable:324:12) {
input: undefined,
code: 'ERR_NON_2XX_3XX_RESPONSE',
timings: {
start: 1669750619376,
socket: 1669750619376,
lookup: 1669750619376,
connect: 1669750619436,
secureConnect: 1669750619501,
upload: 1669750619501,
response: 1669750620162,
end: 1669750620171,
error: undefined,
abort: undefined,
phases: {
wait: 0,
dns: 0,
tcp: 60,
tls: 65,
request: 0,
firstByte: 661,
download: 9,
total: 795
}
},
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: <ref *1> URL {
[Symbol(context)]: URLContext {
flags: 912,
scheme: 'https:',
username: '',
password: '',
host: 'media-cdn-us-west-2.gopro.com',
port: null,
path: [
'd5de76b4-1367-4665-b458-69489a929521',
'2057796733219374206',
'source',
'default',
'1.jpg'
],
query: 'X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=ASIA3OOFXGVAH5LUUKWT%2F20221129%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20221129T193659Z&X-Amz-Expires=3600&X-Amz-Security-Token=AusGZXIvYXdzEFoaDMoHGapGjUww90F2vSKTBNr7uMb68IssZbwToxaxYaXw%2FBMId6aWuN%2FUpIzfcExekSaO28cHoPz%2F%2B224%2BFgEUk%2BLL9yfReNIWe856FShVuijUD5y9htw3V1kOVllMEaheqxPr3%2FPrL3PeAUU2GC0uyoqPfZLfvt6jzUnl1e%2Fn76b9zGhmFv5vg6PBpuy47%2BGLsTfTt2fvZas9k4um5i2Hkc3n741c3gLq2OkFsXAMykboPZCQff1fbzIDF5uAfEl8kk60EhqoIaf8ZvYtHWnnMTX7KD0Vt4X4rVClkdEjs3Tes5eEApB3ts2jUBDjJlD2oLDxiadO0CtkKFq9XZfxyFxXdnqhJtZVJnBlQmfM8v7kJcEJxSQEg%2BZPT3nmodLu1G3d6OaVUaj3IHq2iiyk4XB1ACZrDe14lKMRRe0IxrkyF2%2BJ3Zq54ZBS91lsCM2uXHpiEaBR15YdrY5ogSs%2Bu8YfJU7Atm5KNrBuN30u84gK62EPKoyq0e68P%2BNK%2F%2BLS1SKOVddmzJZQxwTZoLuVo72gBLv6wOoUeBW37D%2F72npSJjxorVHvyGlK1kGmj1qk3hyOFNeT4y3vanhdsOzku3CGPIgnvvyE7evFIp%2FTglOED%2B7Q6DSXDGqkLIWbqxY0q6z%2F6xpYnznZIPTE%2F6Ej7TyrGwkXAM7Agl9TdZ4lx5fwnDFy7Zj5l%2Fd5K07Q9rpM1NEiOBWb%2FKUpkIIEhxwL3EAUSjA45icBjIqXe22U%2BMNHLDz5PAH2wdAB3z1XsDIEhnOVutxdcKwbghE%2FeN86Xm1Kpm%2F&X-Amz-SignedHeaders=host&response-content-disposition=attachment%3B%20filename%3DGOPR1324.JPG%3B&X-Amz-Signature=79fd5c350821b02139121e075dd002baa4dd571046ef79a5c9ff9964e54f0a0c',
fragment: null
},
[Symbol(query)]: URLSearchParams {
[Symbol(query)]: [
'X-Amz-Algorithm',
'AWS4-HMAC-SHA256',
'X-Amz-Credential',
'ASIA3OOFXGVAH5LUUKWT/20221129/us-west-2/s3/aws4_request',
'X-Amz-Date',
'20221129T193659Z',
'X-Amz-Expires',
'3600',
'X-Amz-Security-Token',
'FwoGZXIvYXdzEFoaDMoHGapGjUww90F2vSKTBNr7uMb68IssZbwToxaxYaXw/BMId6aWuN/UpIzfcExekSaO28cHoPz/+224+FgEUk+LL9yfReNIWe856FShVuijUD5y9htw3V1kOVllMEaheqxPr3/PrL3PeAUU2GC0uyoqPfZLfvt6jzUnl1e/n76b9zGhmFv5vg6PBpuy47+GLsTfTt2fvZas9k4um5i2Hkc3n741c3gLq2OkFsXAMykboPZCQff1fbzIDF5uAfEl8kk60EhqoIaf8ZvYtHWnnMTX7KD0Vt4X4rVClkdEjs3Tes5eEApB3ts2jUBDjJlD2oLDxiadO0CtkKFq9XZfxyFxXdnqhJtZVJnBlQmfM8v7kCjEJxSQEg+ZPT3nmodLu1G3d6OaVUaj3IHq2iiyk4XB1ACZrDe14lKMRRe0IxrkyF2+J3Zq54ZBS91lsCM2uXHpiEaBR15YdrY5ogSs+u8YfJU7Atm5KNrBuN30u84gK62EPKoyq0e68P+NK/+LS1SKOVddmzJZQxwTZoLuVo72gBLv6wOoUeBW37D/72npSJjxorVHvyGlK1kGmj1qk3hyOFNeT4y3vanhdsOzku3CGPIgnvvyE7evFIp/TglOED+7Q6DSXDGqkLIWbqxY0q6z/6xpYnznZIPTE/6Ej7TyrGwkXAM7Agl9TdZ4lx5fwnDFy7Zj5l/d5K07Q9rpM1NEiOBWb/TZpkIIEhxwL3EAUSjA45icBjIqXe22U+MNHLDz5PAH2wdAB3z1XsDIEhnOVutxdcKwbghE/eN86Xm1Kpm/',
'X-Amz-SignedHeaders',
'host',
'response-content-disposition',
'attachment; filename=GOPR1324.JPG;',
'X-Amz-Signature',
'79fd5c350821b02139121e075dd002baa4dd571046ef79a5c9ff9964e54f0a0c'
],
[Symbol(context)]: [Circular *1]
}
},
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
},
_merging: false,
_init: [ { isStream: true } ]
}
}

Node.js v18.11.0`

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

1 participant