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.

Bad Request - Invalid Verb

See original GitHub issue

We are experiencing an issue sporadicly and getting Bad Request - Invalid Verb from the proxy.

We were testing with this method to make it pretty simple.

import { sp, List } from '@pnp/sp';

const flow = (list: List) => {
  list.items.add({ Title: new Date().toISOString() })
    .then(({ data }) => {
      setTimeout(() => {
        list.items.getById(data.Id).delete()
          .then(() => flow(list))
          .catch(console.log);
      }, 1000 * 30); // creating and deleting an item per 30 sec until fail 
    });
};

flow(sp.web.lists.getByTitle('My List'));

It took 9h for it to fail.

Here is the request

pnp-call-fail

Here is the response

"<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01//EN\"\"http://www.w3.org/TR/html4/strict.dtd\">\r\n<HTML><HEAD><TITLE>Bad Request</TITLE>\r\n<META HTTP-EQUIV=\"Content-Type\" Content=\"text/html; charset=us-ascii\"></HEAD>\r\n<BODY><h2>Bad Request - Invalid Verb</h2>\r\n<hr><p>HTTP Error 400. The request verb is invalid.</p>\r\n</BODY></HTML>\r\n"

We are using UserCredentials strategy and SharePoint Online for dev. I will test it again tonight to see if it take around the same time to fail and post it here.

If any more test or informations is required, just ask me, i will do my best to test!

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
LBoylecommented, Nov 5, 2018

It’s intermittent, I wasn’t able to produce it today, I was able yesterday, and my manager was on his machine. I’m kind of stumped as well. Like you say, no errors in the SP page, so it’s not a blocker.

If I find something useful, I’ll post it here.

0reactions
tusharprithvirajcommented, Dec 26, 2018

@koltyakov I used your project just to test sp-rest-proxy i passed my site URL and credentials SAML, but getting the below errors . image I tried putting the entire url and got the below error, please suggest.I am trying to connect to sharepoint online. image

Read more comments on GitHub >

github_iconTop Results From Across the Web

IIS7 : Bad Request - Invalid Verb HTTP Error 400. The ... - MSDN
Hi,. the answer is in the error message : you've used a HTTP method that is not allowed. The module Request Filtering has...
Read more >
Invalid Verb on during debugging Visual Studio - Stack Overflow
Bad Request - Invalid Verb HTTP Error 400. The request verb is invalid. The website under development was run on ISSExpress via Visual...
Read more >
How to Fix a 400 Bad Request Error (Causes and Fixes) - Kinsta
The 400 Bad Request error indicates that the server cannot or process the request due to a client error. Read about the common...
Read more >
Intermittent 400 "Invalid Verb" er… | Apple Developer Forums
I have an Enterprise iOS app that allows users to upload images to our Sharepoint Intranet. The app simply does a PUT request...
Read more >
The “Bad Request - Invalid Verb / HTTP Error 400. The ...
The request verb is invalid.” Which uses below controls, <dx:ASPxCallback, <dx:ASPxLabel, <dx:ASPxGridView, <dx:ASPxGridViewExporter and <dx: ...
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