Closed 86chenjie closed 9 months ago
@86chenjie what is the problem ? because it works for me
All the steps in this tutorial work well on my side:
please retry, if you still get errors, post things that describe what you did and at which step you got these errors.
https://docs.scrypt.io/tutorials/hello-world/ follow doc link above, error is below: `(base) jeff@jeffdeMacBook-Pro helloworld % npx ts-node deploy.ts /Users/jeff/Workspace/scrypt/helloworld/node_modules/superagent/src/node/index.js:901 error = new Error(message); ^ Error: Internal Server Error at Request.callback (/Users/jeff/Workspace/scrypt/helloworld/node_modules/superagent/src/node/index.js:901:17) at fn (/Users/jeff/Workspace/scrypt/helloworld/node_modules/superagent/src/node/index.js:1166:18) at IncomingMessage. (/Users/jeff/Workspace/scrypt/helloworld/node_modules/superagent/src/node/parsers/json.js:19:7)
at IncomingMessage.emit (node:events:529:35)
at IncomingMessage.emit (node:domain:489:12)
at endReadableNT (node:internal/streams/readable:1400:12)
at processTicksAndRejections (node:internal/process/task_queues:82:21) {
status: 500,
response: <ref *1> Response {
_events: [Object: null prototype] {},
_eventsCount: 0,
_maxListeners: undefined,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 4,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
joinDuplicateHeaders: undefined,
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 500,
statusMessage: 'Internal Server Error',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [ClientRequest],
text: '',
} } (base) jeff@jeffdeMacBook-Pro helloworld % `
from log, access for "https://api.whatsonchain.com/v1/bsv/test/address/mzuphPYBcDannfABd93B4cANLwRw9a3BqQ/unspent" fail. but "https://api.whatsonchain.com/v1/bsv/test/address/mzuphPYBcDannfABd93B4cANLwRw9a3BqQ/confirmed/unspent" is ok.