fluencelabs / dev-rewards

Apache License 2.0
554 stars 368 forks source link

Can not claim token: `Proof has invalid format` #31

Closed huynguyennovem closed 4 months ago

huynguyennovem commented 4 months ago

Thanks for the program!

But I got an issue. After I had the proof string, I pasted it to proof page but there are only two alert dialogs:

image

Cannot confirm that tokens are not claimed yet.
Proof has invalid format

How to solve this?

huynguyennovem commented 4 months ago

I open the console to observe issue:

governance.js:126 
 Error: unknown account #0 (operation="getAddress", code=UNSUPPORTED_OPERATION, version=providers/5.7.2)
    at _r.makeError (index.ts:269:28)
    at _r.throwError (index.ts:281:20)
    at json-rpc-provider.ts:204:24
    at async Promise.all (index 0)
daizong commented 4 months ago

I connect wallet again to solve it.

hongda3141 commented 4 months ago

I connect wallet again to solve it.

Ditto

huynguyennovem commented 4 months ago

I connect wallet again to solve it.

Can you please be more specific? I use MetaMask, it only provides the wallet address to the Proof as I can see.

hongda3141 commented 4 months ago

I connect wallet again to solve it.

Can you please be more specific? I use MetaMask, it only provides the wallet address to the Proof as I can see.

I just refresh the chrome browser so I could reconnect the wallet, and I added all the code that program generated to the box.

huynguyennovem commented 4 months ago

I just refresh the chrome browser so I could reconnect the wallet, and I added all the code that program generated to the box.

Thanks, but still doesn't work for me

akim-bow commented 4 months ago

Hi! You can try both python script and bash script to generate signature. Also try to use Metamask only, as it's best supported option.

huynguyennovem commented 4 months ago

Hi! You can try both python script and bash script to generate signature. Also try to use Metamask only, as it's best supported option.

I tried Python, it generated the same string and had the same issue as Docker above

akim-bow commented 4 months ago

Any errors in browser console?

huynguyennovem commented 4 months ago

Any errors in browser console?

Yes. I already shared it above: https://github.com/fluencelabs/dev-rewards/issues/31#issuecomment-1973752768. Will share here again. The error also appears on Chrome browser.

governance.js:126 Error: unknown account #0 (operation="getAddress", code=UNSUPPORTED_OPERATION, version=providers/5.7.2)
    at _r.makeError (index.ts:269:28)
    at _r.throwError (index.ts:281:20)
    at json-rpc-provider.ts:204:24
    at async Promise.all (index 0)
(anonymous) @ governance.js:126
await in (anonymous) (async)
(anonymous) @ redux-thunk.mjs:5
onSubmit @ proof-page.js:66
je @ react-dom.production.min.js:54
ze @ react-dom.production.min.js:54
(anonymous) @ react-dom.production.min.js:55
Br @ react-dom.production.min.js:105
Dr @ react-dom.production.min.js:106
(anonymous) @ react-dom.production.min.js:117
ul @ react-dom.production.min.js:274
Te @ react-dom.production.min.js:52
Wr @ react-dom.production.min.js:109
Zt @ react-dom.production.min.js:74
Vt @ react-dom.production.min.js:73
Show less
proof-page.js:151 TypeError: Cannot read properties of undefined (reading 'message')
    at onSubmit (proof-page.js:140:37)
akim-bow commented 4 months ago

I see, more logs are always useful to debug. Please try the following:

huynguyennovem commented 4 months ago

Seems like clearing cache or DB makes it works. I can see MetaMask is updated now after pressing Claim button. It requires a fee, though. Anyway, this issue can be closed. Thank you!