Closed ameyaaklekar closed 4 weeks ago
Can you provide what you see in the Dev Tools Network Tab for this request?
@bcameron1231 we are not able to replicate this issue on our end, this is happening for few users and it gets recorded in our logs. And the result of this error is there are no files in the document library for those requests.
@ameyaaklekar Okay, that makes this rather difficult for us to help without knowing more. The code looks fine to me. If you're unable to reproduce it, it feels like it's an issue outside of the library. Can they upload successfully without using this code (that is, directly on the list?)
What permissions do these users have? I believe Edit rights are required for uploading Attachments to list items.
@bcameron1231 Yup, they all have read and write permissions.
@ameyaaklekar Ok thanks. I'm not sure at the moment, it would be really helpful if your end users could capture the Network calls just to see what is happening. Because it's intermittent and you can't reproduce it yourself, it's hard to say it's a PnPjs issue or not.
@bcameron1231 thank you, I will keep an eye on this.
Hi. We will close this issue for now as it is an intermittent issue. When you're able to reproduce and provide some more diagnostic information, please open a new issue and reference this issue. Thanks!
This issue is locked for inactivity or age. If you have a related issue please open a new issue and reference this one. Closed issues are not tracked.
Major Version
3.x
Minor Version Number
3.24.0
Target environment
SharePoint Framework
Additional environment details
Node Version: 18.20.0 SPFX Version: 1.19.0 Typescript: 4.7.4
Expected or Desired Behavior
We have developed an app to handle Daily Business Operations. There are 100s of users using the app at the same time. But only some of them are facing this issue. We have multiple forms that adds data to Sharepoint lists and if there are any attachments they gets added to the document library. This is the expected behavior.
Observed Behavior
When submitting the request, the data gets added to the list correctly but while adding the files to the document library some users get the error and the documents don't get added to the document library.
[{"FileName":"Complete_with_Docusign.pdf","StackTrace":"TypeError: Failed to fetch\n at c (https://publiccdn.sharepointonline.com/site.sharepoint.com/sites/AppStore/ClientSideAssets/f25c455d-16ce-453c-8f3f-538e4eaf03c3/webpart-web-part_bbd2b95a37cd14bf4fb8.js:2:1329754)\n at c (https://publiccdn.sharepointonline.com/site.sharepoint.com/sites/AppStore/ClientSideAssets/f25c455d-16ce-453c-8f3f-538e4eaf03c3/webpart-web-part_bbd2b95a37cd14bf4fb8.js:2:1329833)\n at async https://publiccdn.sharepointonline.com/site.sharepoint.com/sites/AppStore/ClientSideAssets/f25c455d-16ce-453c-8f3f-538e4eaf03c3/webpart-web-part_bbd2b95a37cd14bf4fb8.js:2:1326512","Message":"Failed to fetch"}]
Steps to Reproduce
I have attached the code below that handles the file upload.