OpenQDev / OpenQ-Frontend

Frontend for https://openq.dev
https://openq.dev
16 stars 16 forks source link

Several prod FE error logs #1754

Open FlacoJones opened 1 year ago

FlacoJones commented 1 year ago

These are some error logs with line identifiers from the past day in prod - any ideas on what might be causing them, if they're serious or not, and how we can address them?

id: UnexpectedError.js2, message: Unexpected token U in JSON at position 0, date: Tue Apr 04 2023 21:48:51 GMT+0000 (Coordinated Universal Time), userAddress: undefined
id: [address.js]3, message: invalid address (argument="address", value="undefined", code=INVALID_ARGUMENT, version=address/5.7.0), date: Wed Apr 05 2023 05:21:58 GMT+0000 (Coordinated Universal Time), userAddress: null
id: [address.js]4, message: Could not resolve to a node with the global id of 'mdu6sxnzdwu2odixmdu1mze=', date: Wed Apr 05 2023 05:21:58 GMT+0000 (Coordinated Universal Time), userAddress: null
id: [address.js]6, message: OpenQ could not find a contract with address: undefined., date: Wed Apr 05 2023 05:21:58 GMT+0000 (Coordinated Universal Time), userAddress: null
undefined error
id: [address.js]3, message: invalid address (argument="address", value="undefined", code=INVALID_ARGUMENT, version=address/5.7.0), date: Wed Apr 05 2023 06:15:15 GMT+0000 (Coordinated Universal Time), userAddress: null
id: [address.js]4, message: Could not resolve to a node with the global id of 'mdu6sxnzdwu2odixmdu1mze=', date: Wed Apr 05 2023 06:15:15 GMT+0000 (Coordinated Universal Time), userAddress: null
id: [address.js]6, message: OpenQ could not find a contract with address: undefined., date: Wed Apr 05 2023 06:15:15 GMT+0000 (Coordinated Universal Time), userAddress: null
undefined error
ready - started server on 0.0.0.0:3000, url: http://localhost:3000
info  - Loaded env from /app/.env
undefined error
id: UnexpectedError.js2, message: Unexpected token U in JSON at position 0, date: Tue Apr 04 2023 20:53:34 GMT+0000 (Coordinated Universal Time), userAddress: undefined
id: [address.js]3, message: invalid address (argument="address", value="[object Object]", code=INVALID_ARGUMENT, version=address/5.7.0), date: Tue Apr 04 2023 21:28:47 GMT+0000 (Coordinated Universal Time), userAddress: null
id: [address.js]6, message: OpenQ could not find a contract with address: [object Object]., date: Tue Apr 04 2023 21:28:47 GMT+0000 (Coordinated Universal Time), userAddress: null
id: [address.js]3, message: invalid address (argument="address", value="[object Object]", code=INVALID_ARGUMENT, version=address/5.7.0), date: Tue Apr 04 2023 21:28:53 GMT+0000 (Coordinated Universal Time), userAddress: null
id: [address.js]6, message: OpenQ could not find a contract with address: [object Object]., date: Tue Apr 04 2023 21:28:53 GMT+0000 (Coordinated Universal Time), userAddress: null
undefined error
undefined error
id: UnexpectedError.js2, message: Unexpected token U in JSON at position 0, date: Tue Apr 04 2023 21:48:35 GMT+0000 (Coordinated Universal Time), userAddress: undefined
id: [address.js]6, message: OpenQ could not find a contract with address: 0xc450b7d396e53f2f64b77b0598624b010368157f., date: Wed Apr 05 2023 02:22:46 GMT+0000 (Coordinated Universal Time), userAddress: null
id: [address.js]3, message: invalid address (argument="address", value="[object Object]", code=INVALID_ARGUMENT, version=address/5.7.0), date: Tue Apr 04 2023 21:29:25 GMT+0000 (Coordinated Universal Time), userAddress: null
id: [address.js]6, message: OpenQ could not find a contract with address: [object Object]., date: Tue Apr 04 2023 21:29:25 GMT+0000 (Coordinated Universal Time), userAddress: null
id: [address.js]3, message: invalid address (argument="address", value="undefined", code=INVALID_ARGUMENT, version=address/5.7.0), date: Tue Apr 04 2023 22:18:28 GMT+0000 (Coordinated Universal Time), userAddress: null
id: [address.js]6, message: OpenQ could not find a contract with address: undefined., date: Tue Apr 04 2023 22:18:29 GMT+0000 (Coordinated Universal Time), userAddress: null
id: [address.js]3, message: invalid address (argument="address", value="undefined", code=INVALID_ARGUMENT, version=address/5.7.0), date: Wed Apr 05 2023 04:28:45 GMT+0000 (Coordinated Universal Time), userAddress: null
id: [address.js]4, message: Could not resolve to a node with the global id of 'mdu6sxnzdwu2odixmdu1mze=', date: Wed Apr 05 2023 04:28:45 GMT+0000 (Coordinated Universal Time), userAddress: null
id: [address.js]6, message: OpenQ could not find a contract with address: undefined., date: Wed Apr 05 2023 04:28:45 GMT+0000 (Coordinated Universal Time), userAddress: null
undefined error
ArcAnya commented 1 year ago

Most of them, [address.js]3, 4 or 6 come from getServerSideProps of the contract page - would seem to me that there were hiccups when getting the data (3: get bounty from API, 4: fetching issue from Github and 6: getting a bounty from subgraph)

Was able to reproduce part of these locally by just entering a wrong bountyId and address in the link for the contract - so part of it could have been just accidentally deleting a character from the contract link when moving between bounties: image

Specifically on the prod messages:

One of the messages says "OpenQ could not find a contract with address: 0xc450b7d396e53f2f64b77b0598624b010368157f" and indeed, when checking the graph it seems like this bounty is non-existent... does it exist in our database? (unsure how to check this on staging or prod)

The other message with the id of "mdu6sxnzdwu2odixmdu1mze=": it seems the code was trying to fetch an issue by that id, but there is no issue with that id to be found on GitHhub

But maybe in both cases there might be a close enough id / address?

Christopher-Stevers commented 1 year ago

One of the messages says "OpenQ could not find a contract with address: 0xc450b7d396e53f2f64b77b0598624b010368157f" and indeed, when checking the graph it seems like this bounty is non-existent... does it exist in our database? (unsure how to check this on staging or prod)

No it doesn't exist in our db, its the one that was up there before Eth Denver. I'll try to complete it for them over the weekend and, if possible get them to mint a new contract, then blacklist the old one in the api.