Comments (12)
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.
from sp-rest-proxy.
I've done an other test this morning and it didn't take too long before the error's happened.
It's again on the DELETE verb, everything is the same exept the ID of the item.
from sp-rest-proxy.
Intermittent issues are tremendously hard to troubleshoot. On a long-running test session, I got something similar. It was on another method. I still quite unsure what it might be.
from sp-rest-proxy.
ok, thanks for your time! It's not a prod problem so it's still ok, but sometime we break some entities and lose time to fix those entities ;)
from sp-rest-proxy.
Can you help me with debug with the following approach using Fiddler:
1. Add these lines before new RestProxy(settings).serve();
:
process.env.http_proxy = 'http://127.0.0.1:8888';
process.env.https_proxy = 'http://127.0.0.1:8888';
process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0';
This should enable traffic through Fiddler.
2. Execute long-running code.
3. Be sure that requests are captured in Fiddler. Filter for the process can be handy to track only requests to SharePoint API.
4. Wait until the error.
5. Check if the response from SharePoint was bypassed and proxy just returned what came from SP, etc.
from sp-rest-proxy.
Ok, i will try to take some minutes before leaving to test it.
So i need to download fidler ?
or do i see it in cmd console ?
from sp-rest-proxy.
Here i got an error similar and it seems's the proxy couldn't connect to our sharepoint online site
[Fiddler] The connection to 'ccauxtransports.sharepoint.com' failed.
Error: TimedOut (0x274c).
System.Net.Sockets.SocketException Une tentative de connexion a échoué car le parti connecté n’a pas répondu convenablement au-delà d’une certaine durée ou une connexion établie a échoué car l’hôte de connexion n’a pas répondu 13.107.136.9:443
Sorry, my computer is in french so the errors are displaying in french too :)
So it's a timeout error for this one, i will wait to get the real error of socket to show it here!
I know that timeout error is not the proxy fault ;)
We should just wait for the socket error to happen again to see if it's sharepoint online fault again!
from sp-rest-proxy.
I would have added some retry logic, but not sure if it's correct as the main goal is to behave as close as if it was an app talking to SharePoint. Any enrichments might end up with a code working in proxy mode, but failing after deployment to SharePoint which is obviously not a good thing.
from sp-rest-proxy.
I've had this issue on POST, the same error, using pnp/sp.
I'm trying to update the list that underlies a document library, setting metadata on files, my browser reports a POST, the error says I used a GET.
This happens to just one of numerous parallel requests all doing the same thing in a Promise.all, all succeed except one which produces this error.
We used fetch initially making our own urls, and never saw this, then using pnp/sp with the proxy it suddenly shows up a few days ago.
Not much of value to offer, just letting you know.
P.S. If it is the proxy, great news for me because it won't happen in production.
Edit: I've found this to be the case so far, suggesting it's the proxy and not pnp.
By the way, excellent proxy server, super helpful, thank you.
from sp-rest-proxy.
Hi @LBoyle,
Is it something you can reproduce with a guaranty or intermittent one?
If reproducible, can you try on SP page will it end up with no errors or the same?
The proxy doesn't convert methods, I can't imagine a case when POST sent to the proxy ended up with GET to SP API.
from sp-rest-proxy.
@koltyakov Same here, we are in production build for more than a month and we got no problem with pnp/js. We did have this error that i've created in the past but it seem's ok now. We switched from SP-Online to SP-OnPrem, so i don't know if it really change something?
from sp-rest-proxy.
@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.
from sp-rest-proxy.
Related Issues (20)
- Identical requests - succeeding and failing HOT 4
- Can this react app be deployed as a web app on to a windows server so that users can access the app outside of the server ? HOT 6
- Host "sp-rest-proxy" as an independent web-app on Azure or pass authentication in configs to be used in CI/CD pipeline HOT 1
- Can this proxy be used when the host SP environment (on prem) has a "strict-origin-when-cross-origin" HTTP referrer policy? HOT 3
- sharepoint MFA bypass HOT 2
- [Feature query] Can the proxy be made to connect to multiple sites? HOT 1
- sp-rest-proxy with sharepointplus HOT 10
- POST request fails when calling the proxy (adding extra path to sharepoint request) HOT 5
- Proxy Error: Cannot read properties of null (reading 'toString') (see more in sp-rest-proxy console) HOT 4
- Version 3.3.4 broken for OnpremiseUserCredentials HOT 5
- Cannot read properties of null (reading 'toString') HOT 3
- On Demand - cannot read properties of null / childprocess.spawnsync EONENT Error HOT 2
- Proxy approach for Azure Active Directory HOT 2
- Typescript import HOT 1
- Setting siteUrl programatically HOT 4
- sp-rest-proxy does not work with Node 18.16.0 (current LTS) HOT 5
- Thank you HOT 1
- Docker HOT 2
- JSOM using sp-rest-proxy / clarification needed HOT 9
- 401 When Running in Docker HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sp-rest-proxy.