close
Skip to content

Status code: 415: unsupported media type #930

Description

@PJStation

5.6.0
one file format is not supported causing the list request to throw an exception

"request" : {
    "body" : "",
    "headers" : {
      "Authorization" : "Bearer nzIK9oknSxX5zdvvlSvUPxaouTTKSWfH",
      "X-Box-UA" : "agent=box-swift-sdk/5.6.0; env=iPhone14,2/15.4.1"
    },
    "method" : "GET",
    "url" : {
      "host" : "api.box.com",
      "path" : "/2.0/folders/0/items",
      "query" : {

      },
      "scheme" : "https"
    }
  },
  "response" : {
    "body" : {
      "code" : "unsupported_media_type",
      "help_url" : "http://developers.box.com/docs/#errors",
      "message" : "Previews for 'conf' files are not yet supported.",
      "request_id" : "9eqdqzhtu67l0c78",
      "status" : 415,
      "type" : "error"
    },
    "headers" : {
      "Alt-Svc" : "h3=":443"; ma=2592000,h3-29=":443"; ma=2592000",
      "box-request-id" : "08461ad9e7c98f2f7197f6dedc048ac50",
      "Cache-Control" : "no-cache, no-store",
      "Content-Type" : "application/json",
      "Date" : "Fri, 20 Sep 2024 06:36:10 GMT",
      "Strict-Transport-Security" : "max-age=31536000",
      "Via" : "1.1 google",
      "x-envoy-upstream-service-time" : "501"
    },
    "statusCode" : 415
  },

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions