Bad Request - Invalid Verb
See original GitHub issueWe 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
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:
- Created 5 years ago
- Comments:12 (4 by maintainers)
Top GitHub Comments
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.
@koltyakov I used your project just to test sp-rest-proxy i passed my site URL and credentials SAML, but getting the below errors . I tried putting the entire url and got the below error, please suggest.I am trying to connect to sharepoint online.