Skip to content

无法上传,查看post日志里面有报错"error code: 502\" is not valid JSON" #237

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

Open
Kiteflyingee opened this issue Mar 1, 2025 · 3 comments

Comments

@Kiteflyingee
Copy link

Upload error:",
"SyntaxError: Unexpected token 'e', "error code: 502" is not valid JSON"
],

Image

{
"wallTime": 335,
"cpuTime": 20,
"truncated": false,
"executionModel": "stateless",
"outcome": "ok",
"scriptVersion": {
"id": "34841303-ba2e-4e60-b2e4-3cb05c88577d"
},
"scriptName": "pages-worker--5369064-production",
"diagnosticsChannelEvents": [],
"exceptions": [],
"logs": [
{
"message": [
"sampleRate",
0.1
],
"level": "log",
"timestamp": 1740845740703
},
{
"message": [
"sampleRate",
0.1
],
"level": "log",
"timestamp": 1740845740703
},
{
"message": [
"Sending request to:",
"https://api.telegram.org/botundefined/sendPhoto"
],
"level": "log",
"timestamp": 1740845740703
},
{
"message": [
"Response status:",
502
],
"level": "log",
"timestamp": 1740845740967
},
{
"message": [
"Upload error:",
"SyntaxError: Unexpected token 'e', "error code: 502" is not valid JSON"
],
"level": "error",
"timestamp": 1740845740967
}
],
"eventTimestamp": 1740845740648,
"event": {
"request": {
"url": "https://e6ed405c.telegraph-image-bt4.pages.dev/upload",
"method": "POST",
"headers": {
"accept": "application/json, text/plain, /",
"accept-encoding": "gzip, br",
"accept-language": "zh-CN,zh;q=0.9",
"baggage": "sentry-environment=production,sentry-public_key=219f636ac7bde5edab2c3e16885cb535,sentry-trace_id=bf7ee7e0e1cb4c11acb05f567b85c5b3",
"cf-connecting-ip": "118.166.31.19",
"cf-ipcountry": "TW",
"cf-ray": "9199f426b8af8f13",
"cf-visitor": "{"scheme":"https"}",
"connection": "Keep-Alive",
"content-length": "4537781",
"content-type": "multipart/form-data; boundary=----WebKitFormBoundarySlBbNtVS7SrrT9ee",
"host": "e6ed405c.telegraph-image-bt4.pages.dev",
"origin": "https://e6ed405c.telegraph-image-bt4.pages.dev",
"priority": "u=1, i",
"referer": "https://e6ed405c.telegraph-image-bt4.pages.dev/",
"sec-ch-ua": ""Not(A:Brand";v="99", "Google Chrome";v="133", "Chromium";v="133"",
"sec-ch-ua-mobile": "?0",
"sec-ch-ua-platform": ""macOS"",
"sec-fetch-dest": "empty",
"sec-fetch-mode": "cors",
"sec-fetch-site": "same-origin",
"sentry-trace": "bf7ee7e0e1cb4c11acb05f567b85c5b3-9aed4753432f1e0b",
"user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36",
"x-forwarded-proto": "https",
"x-real-ip": "118.166.31.19"
},
"cf": {
"clientTcpRtt": 13,
"requestHeaderNames": {},
"httpProtocol": "HTTP/2",
"tlsCipher": "AEAD-AES128-GCM-SHA256",
"continent": "AS",
"asn": 3462,
"clientAcceptEncoding": "gzip, deflate, br, zstd",
"tlsClientExtensionsSha1": "PwAa4Y5eb7B6rp0iPTeBxqKZwVc=",
"verifiedBotCategory": "",
"country": "TW",
"tlsClientAuth": {
"certIssuerDNLegacy": "",
"certIssuerSKI": "",
"certSubjectDNRFC2253": "",
"certSubjectDNLegacy": "",
"certFingerprintSHA256": "",
"certNotBefore": "",
"certSKI": "",
"certSerial": "",
"certIssuerDN": "",
"certVerified": "NONE",
"certNotAfter": "",
"certSubjectDN": "",
"certPresented": "0",
"certRevoked": "0",
"certIssuerSerial": "",
"certIssuerDNRFC2253": "",
"certFingerprintSHA1": ""
},
"requestPriority": "weight=220;exclusive=1",
"tlsExportedAuthenticator": {
"clientFinished": "e5bac35b6a635f64fc11e8d2b0ba3846e14adcde89fa2bb33d419e9b8679be0d",
"clientHandshake": "ab118caf42e4a9193b03b33a0de3fa82eb6d227fb1a54ef0f641ab0ee70abbec",
"serverHandshake": "c25d72dba06b1f95cab7e9c5ed0748fd5c033d46ce9c59c755b64ee2e9f9c4cd",
"serverFinished": "208c5a6c5b31bfcca426830578dd45d3d3790d54e096d1e9d56de9fabf7f1edc"
},
"tlsVersion": "TLSv1.3",
"colo": "TPE",
"timezone": "Asia/Taipei",
"region": "Taipei City",
"longitude": "121.52590",
"edgeRequestKeepAliveStatus": 1,
"tlsClientRandom": "PBp3yTE5uUx1P1Z74Pxr6f18pd24RbmZjtQIQLyX3dU=",
"latitude": "25.05300",
"city": "Taipei",
"regionCode": "TPE",
"asOrganization": "Chunghwa Telecom",
"tlsClientHelloLength": "1835",
"pagesHostName": "e6ed405c.telegraph-image-bt4.pages.dev",
"botManagement": {
"corporateProxy": false,
"verifiedBot": false,
"jsDetection": {
"passed": false
},
"staticResource": false,
"detectionIds": {},
"score": 99
}
}
},
"response": {
"status": 500
}
},
"id": 0
}

@Kiteflyingee
Copy link
Author

Image

@Kiteflyingee
Copy link
Author

@huawuhen
Copy link

huawuhen commented Mar 4, 2025

一样的报错

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