Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The query string "DecodedUrl" is missing or invalid. #1297

Closed
1 task done
danielpastoor opened this issue Oct 16, 2023 · 4 comments
Closed
1 task done

The query string "DecodedUrl" is missing or invalid. #1297

danielpastoor opened this issue Oct 16, 2023 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@danielpastoor
Copy link
Contributor

Category

  • Bug

Describe the bug

When I try to save a SharePoint page then I get this error:

HttpResponseCode: 400
Code: Microsoft.SharePoint.Client.InvalidClientQueryException
Message: The query string "DecodedUrl" is missing or invalid.
ClientRequestId: 70ace4a0-d08e-7000-6b3c-3d6a10f93118
SPClientServiceRequestDuration: 13
X-SharePointHealthScore: 0
X-SP-SERVERSTATE: ReadOnly=0

PnP.Core.SharePointRestServiceException: SharePoint Rest service exception
at PnP.Core.Services.BatchClient.ExecuteSharePointRestInteractiveAsync(Batch batch)
at PnP.Core.Services.BatchClient.ExecuteSharePointRestBatchAsync(Batch batch)
at PnP.Core.Services.BatchClient.ExecuteBatch(Batch batch)
at PnP.Core.Model.BaseDataModel1.BaseRetrieveAsync(ApiCall apiOverride, Func2 fromJsonCasting, Action1 postMappingJson, Expression1[] expressions)
at PnP.Core.Model.SharePoint.Web.GetFileByServerRelativeUrlAsync(String serverRelativeUrl, Expression1[] expressions) at PnP.Core.Model.SharePoint.Web.GetFileByServerRelativeUrlOrDefaultAsync(String serverRelativeUrl, Expression1[] expressions)

Steps to reproduce

Save a page.

Expected behavior

No Error

Environment details (development & target environment)

  • OS: 7MacOS 14
  • SDK used in: Console App
  • Framework: .NET Core 7 ]
  • **Nuget version: 1.10.103-nightly

Additional context

I do think it is related to #1290

@jansenbe jansenbe self-assigned this Oct 16, 2023
@jansenbe jansenbe added question Further information is requested bug Something isn't working and removed question Further information is requested labels Oct 16, 2023
@jansenbe
Copy link
Contributor

@danielpastoor : this indeed is a regression from the recent change. Working on it...

jansenbe added a commit that referenced this issue Oct 16, 2023
@jansenbe
Copy link
Contributor

@danielpastoor : can you try tomorrow with the next nightly and see if the issue is resolved for you?

@danielpastoor
Copy link
Contributor Author

Yes I will try it thank you

@danielpastoor
Copy link
Contributor Author

I have tested the fix and it does work now. Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants