flow-playground icon indicating copy to clipboard operation
flow-playground copied to clipboard

Playground Type Error

Open MrDSGC opened this issue 3 years ago • 1 comments

Describe the bug TypeError Cannot read properties of undefined (reading '0')

Reason:

bad argument input for transaction? user error? https://sentry.io/organizations/dapperlabs/issues/3460590666/?project=6391677

  • 5 events in last 24 hrs by 2 users (119 events in last 30 days)
  • occurs when sending script/transactions to be executed extra error stack :
{
  arguments: [
    {
      code: -32603, 
      data: None, 
      message: input is not a literal, 
      name: Error, 
      stack: 
      Error: input is not a literal
          at https://play.onflow.org/main.js:106:81915
          at https://play.onflow.org/main.js:106:82209
          at https://play.onflow.org/main.js:106:82572
          at r (https://play.onflow.org/main.js:114:322891)
    }
  ], 
  logger: console
}

MrDSGC avatar Aug 31 '22 20:08 MrDSGC

https://github.com/onflow/flow-playground/blob/staging/src/components/CadenceEditor/ControlPanel/index.tsx#L277 and https://github.com/onflow/flow-playground/blob/staging/src/components/Arguments/index.tsx#L307

Error is due to LS responding with no data to the formatted var. The try/catch errors out and logs to console but the code continues and reaches this Type error attempting to index into undefined

Image

MrDSGC avatar Sep 13 '22 16:09 MrDSGC

@MrDSGC what's the plan with this issue? Did we reach an agreement on how to proceed?

fotescodev avatar Jan 07 '23 00:01 fotescodev

Stale.

justinbarry avatar Mar 21 '23 16:03 justinbarry