question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Every time I try to verify I get “Invalid API Key” it worked 1 time, 2nd time it fails every time.

cd-bank truffle run verify CDRW --network goerli
> Warning: possible unsupported (undocumented in help) command line option: --network
Verifying CDRW
Invalid API Key

Failed to verify 1 contract(s): CDRW


Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
shaunrd0commented, May 2, 2021

It seems like I just happened to be using endpoints that were under maintenance at that time, so things are fine now on all endpoints. Still unable to verify my development branch. What is interesting to me though, is I can verify my Migrations contract, just not the Karma contract -

$ npx truffle run verify Migrations --license MIT --network ropsten
Verifying Migrations
Pass - Verified: https://ropsten.etherscan.io/address/0xE2C05A757fD9C810160a783D72C8f6D60C32983F#contracts
Successfully verified 1 contract(s).
$ npx truffle run verify  Karma --license MIT --network ropsten
Verifying Karma
Fail - Unable to verify
Failed to verify 1 contract(s): Karma

Just to test things, I cloned my repository main branch, which is not an upgradeable token, redeployed my contract and was able to setup this plugin and verify the contracts I deployed without any issue -

$ npx truffle run verify Migrations Karma --network ropsten
Verifying Migrations
Pass - Verified: https://ropsten.etherscan.io/address/0x8F3945eE9372CCaCDB6BF17274f15049946f0317#contracts
Verifying Karma
Pass - Verified: https://ropsten.etherscan.io/address/0x5Fd2d64C7223D2D67eA287EA1c4Cb95e03209c84#contracts
Successfully verified 2 contract(s).

So, if you have any advice I would appreciate it, but I have pretty much summed this up to user error on my part, Sorry for resurrecting the old issue. This seems to be on my end.

Since this is my first attempt at working on any blockchain a lot is new to me. This issue is only seen when I try to deploy the upgradeable ERC20 contract on my development branch. I think I’m getting my wires crossed in the deploy process, or I have changed something else on my upgradeable-karma branch that causes verification to fail.

1reaction
PfanPcommented, Apr 28, 2021

On Heco chain, I am getting same issue

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why am I getting The API key is invalid error? - Zoho Cares
If you have closed your Zoho Account, the API key associated with it automatically becomes inactive and you will get invalid API key...
Read more >
Invalid API key provided: stripe - WordPress.org
@addel101 The error you are receiving is pretty straightforward, and it is usually indicative of one of two issues: 1. The keys you...
Read more >
Why am I getting an invalid API key error in my shopping cart?
Go to Wordpress > Printful > Settings; Delete the Printful Store API Key and click Save changes; Go to your Dashboard and click...
Read more >
Why do I have an error: "Invalid API key: You must be granted ...
According to the API documentation. The URL should look something like this: https://api.themoviedb.org/3/movie/76341?api_key=<<api_key>>.
Read more >
Error: Invalid API Key when trying to add a Google Drive File
Answer: · Google as the Admin Account · Select API Manager > Credentials using the menu on the left · Choose the Credentials...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found