I am trying to authenticate the owner of the account in the backend so I am using account_proof. Before I tried using
'accessNode.api': 'access.mainnet.nodes.onflow.org:9000' but it gave me this error
Error: Response closed without headers ... ...
so I found a workaround which was to use
'accessNode.api': 'https://access-mainnet-beta.onflow.org' and it was working fine yesterday but now it is giving this error
Error: failed to execute the script on the execution node email@example.com:3569=100: rpc error: code = InvalidArgument desc = failed to execute script: failed to execute script at block (10cdbef077586db57b2949cd02e34cd0c051c2b236be1d828ecc2d227b93b73f): [Error Code: 1101] cadence runtime error Execution failed: error: invalid argument at index 0: decodeing argument failed: [Error Code: 1052] transaction arguments are invalid: (argument is not json decodable: failed to decode value: invalid JSON Cadence structure) --> a781c6cb2e8dc91d9e2e4a60358d60b61ea9f7215acae192a32cfeaffe7028e9
How can I solve this?
BTW I am using this method to verify the account Proving Ownership of a Flow Account - Flow Documentation