I’m trying to make resource requests of the Enterprise Solid Server. I have this working (with the different relevant credentials) for the NSS (e.g., with https://crspybits.solidcommunity.net), but I’m getting 400 http responses and “Bad Request” from the ESS.
I’m able to successfully use /token requests with the ESS to refresh my access token.
This uses Swift code, using my own HTTP requests. For reference, the code is here: GitHub - SyncServerII/ServerSolidAccount: Server-side Solid Pod Account for SyncServerII
I’m attempting to create a new directory/container, and upload a file. In the request below, the access token was successfully refreshed immediately before.
My webid is: https://pod.inrupt.com/crspybits/profile/card#me
I’m making a PUT request to:
https://pod.inrupt.com/crspybits/32CD8522-D921-43DF-8B3B-8FAC4A71D3E6/13567B1B-1C4C-40C0-AE93-86DC117D04FD.txt
Request headers:
["Authorization": "DPoP <snip>",
"Link": "<http://www.w3.org/ns/ldp#Resource>; rel=\"type\"",
"Dpop": "<snip>",
"Host": "pod.inrupt.com",
"Content-Type": "text/plain"]
Response body:
{
"error": {
"code": "400",
"message": "Bad Request"
}
}
Response headers:
[AnyHashable("Content-Length"): "90", AnyHashable("Connection"): "keep-alive", AnyHashable("Date"): "Fri, 24 Sep 2021 00:44:13 GMT", AnyHashable("Content-Type"): "application/json", AnyHashable("Strict-Transport-Security"): "max-age=15724800; includeSubDomains"]
(This issue is also here: Resource requests to the Enterprise Solid Server: Getting 400, Bad Request · Issue #5 · SyncServerII/ServerSolidAccount · GitHub)