question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TypeError: Cannot read property 'padStart' of null

See original GitHub issue

Attempting Step 6 of in the kitty-items api.

In the terminal, after executing the command ./setup-minter.sh, this is displayed repeatedly (six times):

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Error</title>
</head>
<body>
<pre>TypeError: Cannot read property &#39;padStart&#39; of null<br> &nbsp; &nbsp;at /Users/mac-user/Documents/kitty-items/api/node_modules/@onflow/sdk/src/send/send-get-account.js:8:19<br> &nbsp; &nbsp;at runMicrotasks (&lt;anonymous&gt;)<br> &nbsp; &nbsp;at processTicksAndRejections (internal/process/task_queues.js:93:5)</pre>
</body>
</html>

In the terminal window connected to flow testnet, the error is:

TypeError: Cannot read property 'padStart' of null
    at /Users/mac-user/Documents/kitty-items/api/node_modules/@onflow/sdk/src/send/send-get-account.js:8:19
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
fromBlock=32442851 toBlock=32442853 latestBlock=32442853

If there are any more details that can help I’m happy to add in the comments – thank you

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
srinjoyccommented, May 27, 2021

Apologies everyone, there was a breaking change to FCL that went out in the spork a few days ago that needed to be updated on this repo - the fix was done by @10thfloor (https://github.com/onflow/kitty-items/pull/91) and should be all good now. Pull in the changes and please try again! @valnermedeiros @FlorianTopf @kulame @hichana

0reactions
FlorianTopfcommented, May 28, 2021

I can confirm. This is working now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

TypeError: Cannot read property 'padStart' of null
I am new to flow and trying to do a transaction. When i initiate the transection it makes same api call 6 time,...
Read more >
Typescript tells me property 'padStart' does not exist on type ...
padStart is defined in the ES2017 standard. You need to tell typescript to use the apropriate typings (the ones for ES2017 ).
Read more >
Cannot read property 'padStart' of null · Issue #867 · onflow/fcl-js
I am new to flow and trying to do a transaction. "@onflow/fcl": "0.0.77", "@onflow/types": "0.0.5", TypeError: Cannot read property 'padStart' of null at...
Read more >
TypeError: padStart is not a function in JavaScript | bobbyhadz
The "padStart is not a function" error occurs when we call the padStart() method on a value that is not a string. To...
Read more >
String Pad in JavaScript | SamanthaMing.com
When you try to coerce undefined , you will get a TypeError. undefined.toString(); // TypeError: Cannot read property 'toString' of undefined.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found