The authorization header you provided is invalid
라는 에러가 가 뜨면서 실패했습니다.
아래는 에러 내용 입니다.
$ truffle deploy --network cypress --reset
Compiling your contracts...
===========================
{
code: -32603,
message: 'Unknown Error: {"code":1010008,"message":"The authorization header you provided is invalid."}',
data: { originalError: {} },
stack: 'Error: Unknown Error: {"code":1010008,"message":"The authorization header you provided is invalid."}\n' +
' at Request._callback (C:\\project\\nodejs\\klaynft\\node_modules\\@trufflesuite\\web3-provider-engine\\subproviders\\rpc.js:57:23)\n' +
' at Request.self.callback (C:\\project\\nodejs\\klaynft\\node_modules\\request\\request.js:185:22)\n' +
' at Request.emit (events.js:400:28)\n' +
' at Request.<anonymous> (C:\\project\\nodejs\\klaynft\\node_modules\\request\\request.js:1157:10)\n' +
' at Request.emit (events.js:400:28)\n' +
' at IncomingMessage.<anonymous> (C:\\project\\nodejs\\klaynft\\node_modules\\request\\request.js:1079:12)\n' +
' at Object.onceWrapper (events.js:519:28)\n' +
' at IncomingMessage.emit (events.js:412:35)\n' +
' at endReadableNT (internal/streams/readable.js:1334:12)\n' +
' at processTicksAndRejections (internal/process/task_queues.js:82:21)'
}
{
code: -32603,
message: 'Unknown Error: {"code":1010008,"message":"The authorization header you provided is invalid."}',
data: { originalError: {} },
stack: 'Error: Unknown Error: {"code":1010008,"message":"The authorization header you provided is invalid."}\n' +
' at Request._callback (C:\\project\\nodejs\\klaynft\\node_modules\\@trufflesuite\\web3-provider-engine\\subproviders\\rpc.js:57:23)\n' +
' at Request.self.callback (C:\\project\\nodejs\\klaynft\\node_modules\\request\\request.js:185:22)\n' +
' at Request.emit (events.js:400:28)\n' +
' at Request.<anonymous> (C:\\project\\nodejs\\klaynft\\node_modules\\request\\request.js:1157:10)\n' +
' at Request.emit (events.js:400:28)\n' +
' at IncomingMessage.<anonymous> (C:\\project\\nodejs\\klaynft\\node_modules\\request\\request.js:1079:12)\n' +
' at Object.onceWrapper (events.js:519:28)\n' +
' at IncomingMessage.emit (events.js:412:35)\n' +
' at endReadableNT (internal/streams/readable.js:1334:12)\n' +
' at processTicksAndRejections (internal/process/task_queues.js:82:21)'
}
baobab 에서는 동작을 확인한 상태구요
메인넷 설정값이 문제인거 같은데요
인터넷에 여러가지 내용을 짜집기 해서 넣었습니다.
아래는 truffle-config.js 에 설정한 값 입니다.
module.exports = {
networks: {
cypress: {
Authorization:
"[KAS 콘솔 에서 받은 json 의 authorization 내용을 넣었습니다.]",
provider: () =>
new HDWalletProvider(PRIVATE_KEY, "https://node-api.klaytnapi.com/v1/klaytn"),
network_id: "8217",
gas: "8500000",
gasPrice: null,
},
... (생략) ...
메인넷 설정값 확인 좀 부탁드립니다.