Code Monkey home page Code Monkey logo

Comments (12)

FoldLeft-lsb avatar FoldLeft-lsb commented on May 27, 2024 1

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.

Korigoth avatar Korigoth commented on May 27, 2024

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.

koltyakov avatar koltyakov commented on May 27, 2024

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.

Korigoth avatar Korigoth commented on May 27, 2024

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.

koltyakov avatar koltyakov commented on May 27, 2024

@Korigoth,

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.

Korigoth avatar Korigoth commented on May 27, 2024

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.

Korigoth avatar Korigoth commented on May 27, 2024

@koltyakov

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

header-no-tunnel

response-no-tunnel

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.

koltyakov avatar koltyakov commented on May 27, 2024

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.

FoldLeft-lsb avatar FoldLeft-lsb commented on May 27, 2024

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.

koltyakov avatar koltyakov commented on May 27, 2024

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.

Korigoth avatar Korigoth commented on May 27, 2024

@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.

tusharprithviraj avatar tusharprithviraj commented on May 27, 2024

@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

from sp-rest-proxy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.