I have deployed and verified contracts before, but have never experienced this issue before.
The code I have, it worked on BSCmainet before but today I got an error:
" Error! Unable to verify source code
Exception err_code_1 Occured: ERROR - Unable to connect to the remote server"
Also, the code I’m using is working fine on testnet (I was able to verify it), but on the mainnet I get the error above.
Can you explain why this happens?
If you are using API keys, make sure your API key is set to the right network. The API key provider, such as alchemy or infura, might have modified your API key too so check there as well.