I had deployed and used a simple contract on my private network. Then I clicked “verify and publish” but got an “internal server error”.
The blockscout log contained an error as shown below. My SECRET_KEY_BASE env var is less than 64 bytes. Would it make sense to change it and restart the blockscout service, or is there something else I would have to do? I worry that the database, or something, might also need some tweak.
Request: GET /address/0x45785b440860B3a43CCbB5e3E322f5184E24818C/contract_verifications/new
** (exit) an exception was raised:
** (ArgumentError) cookie store expects conn.secret_key_base to be at least 64 bytes
(plug 1.10.3) lib/plug/session/cookie.ex:202: Plug.Session.COOKIE.validate_secret_key_base/1
(plug 1.10.3) lib/plug/session/cookie.ex:194: Plug.Session.COOKIE.derive/3
(plug 1.10.3) lib/plug/session/cookie.ex:114: Plug.Session.COOKIE.put/4
(plug 1.10.3) lib/plug/session.ex:89: anonymous fn/3 in Plug.Session.before_send/2
(elixir 1.10.3) lib/enum.ex:2111: Enum."-reduce/3-lists^foldl/2-0-"/3
(plug 1.10.3) lib/plug/conn.ex:1687: Plug.Conn.run_before_send/2
(plug 1.10.3) lib/plug/conn.ex:407: Plug.Conn.send_resp/1
(block_scout_web 0.0.1) lib/block_scout_web/controllers/address_contract_verification_controller.ex:1: BlockScoutWeb.AddressContractVerificationController.action/2