Skip to content

wfs.rename Headers Destination forbidden #85

@sytolk

Description

@sytolk

after rename

wfs.rename("/sample.bmp", "/sample1.bmp", err => {
    // handle error
});

this is the error:

{
  "message": "Network Error",
  "name": "AxiosError",
  "config": {
    "transitional": {
      "silentJSONParsing": true,
      "forcedJSONParsing": true,
      "clarifyTimeoutError": false
    },
    "transformRequest": [
      null
    ],
    "transformResponse": [
      null
    ],
    "timeout": 0,
    "xsrfCookieName": "XSRF-TOKEN",
    "xsrfHeaderName": "X-XSRF-TOKEN",
    "maxContentLength": -1,
    "maxBodyLength": -1,
    "env": {},
    "headers": {
      "Accept": "application/json, text/plain, */*",
      "Authorization": "Basic d2ViZGF2OjEyMzQ=",
      "Destination": "http://localhost:8000/sample1.bmp"
    },
    "url": "http://localhost:8000/sample.bmp",
    "method": "move"
  },
  "code": "ERR_NETWORK",
  "status": null
}
console.error
     Error: Headers Destination forbidden
         at dispatchError (/Users/sytolk/IdeaProjects/tagspaces-common/node_modules/jsdom/lib/jsdom/living/xhr/xhr-utils.js:63:19)
         at validCORSPreflightHeaders (/Users/sytolk/IdeaProjects/tagspaces-common/node_modules/jsdom/lib/jsdom/living/xhr/xhr-utils.js:102:5)
         at Request.<anonymous> (/Users/sytolk/IdeaProjects/tagspaces-common/node_modules/jsdom/lib/jsdom/living/xhr/xhr-utils.js:374:12)
         at Request.emit (events.js:400:28)
         at Request._processResponse (/Users/sytolk/IdeaProjects/tagspaces-common/node_modules/jsdom/lib/jsdom/living/helpers/http-request.js:228:12)
         at ClientRequest.<anonymous> (/Users/sytolk/IdeaProjects/tagspaces-common/node_modules/jsdom/lib/jsdom/living/helpers/http-request.js:101:12)
         at Object.onceWrapper (events.js:520:26)
         at ClientRequest.emit (events.js:400:28)
         at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:647:27)
         at HTTPParser.parserOnHeadersComplete (_http_common.js:126:17) undefined

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions