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.

Error 400 - Cannot read property 'length' of undefined

See original GitHub issue

Hello, I use your proxy a lot for my SPFX dev on SP Online, thanks for that!

On a new SPO tenant, I have a strange problem, error is : { "readyState": 4, "responseText": "Cannot read property 'length' of undefined", "status": 400, "statusText": "Bad Request" }

But the request is good, it is working directly on the tenant (https url GET), and not with the proxy. The same proxy configured with my DEV tenant information is working. Just not on the PROD client tenant…

Version used is 2.8.9

Any idea? Thanks.

Some precision : it is an O365 tenant : xxxxx.sharepoint.com, but I have only access on some collection sites like xxxxx.sharepoint.com/sites/specificsite , and not on the root collection. Could this be the problem?

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
BlueBird67commented, Jun 4, 2019

Ok, I can understand that. Anyway, I’m using the distant Workbench and it’s working this way for now.

You can close my issue, which is certainly a Sharepoint limitation. Thanks.

0reactions
koltyakovcommented, Jun 4, 2019

Thanks for understanding!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot read properties of undefined (reading 'length') - TrackJS
This message indicates that our code expects to have an object with a length property, but that object was not present. length is...
Read more >
Cannot Read Property Length of Undefined in JavaScript
Undefined means that a variable has been declared but has not been assigned a value. In JavaScript, properties and functions can only belong...
Read more >
Typeerror: Cannot Read Property 'length' of Undefined
A typeerror length of undefined can indicate that the actual type of an operand is different from the expected type. This error can...
Read more >
Getting this error: Cannot read property 'length' of undefined
I am building an app with nuxt (using vuetify 2 and typescript). I have radio buttons(say b1 b2) and text fields(say t1 t2...
Read more >
[SOLVED] Cannot Read Property 'length' of Undefined in JS
To fix the “cannot read property 'length' of undefined” error, perform an undefined check on the variable before accessing the length property ......
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