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

error(pdf): This file cannot be downloaded by the user #310

Open
zereraz opened this issue Feb 5, 2025 · 0 comments
Open

error(pdf): This file cannot be downloaded by the user #310

zereraz opened this issue Feb 5, 2025 · 0 comments
Labels
bug Something isn't working durability make the system more robust to failures server all server related tasks

Comments

@zereraz
Copy link
Contributor

zereraz commented Feb 5, 2025

Handle these error cases better

Error getting PDF files: Error: {
  "error": {
    "code": 403,
    "message": "This file cannot be downloaded by the user.",
    "errors": [
      {
        "message": "This file cannot be downloaded by the user.",
        "domain": "global",
        "reason": "cannotDownloadFile"
      }
    ]
  }
}
 Error: {
  "error": {
    "code": 403,
    "message": "This file cannot be downloaded by the user.",
    "errors": [
      {
        "message": "This file cannot be downloaded by the user.",
        "domain": "global",
        "reason": "cannotDownloadFile"
      }
    ]
  }
}

    at new GaxiosError (/Users/sahebjotsingh/Code/Xyne/experiments/xyne-search/server/node_modules/gaxios/build/src/common.js:50:9)
    at <anonymous> (/Users/sahebjotsingh/Code/Xyne/experiments/xyne-search/server/node_modules/gaxios/build/src/gaxios.js:142:36)
    at processTicksAndRejections (native:7:39)
    module: "google"
    err: {
      "type": "GaxiosError",
      "message": "{\n  \"error\": {\n    \"code\": 403,\n    \"message\": \"This file cannot be downloaded by the user.\",\n    \"errors\": [\n      {\n        \"message\": \"This file cannot be downloaded by the user.\",\n        \"domain\": \"global\",\n        \"reason\": \"cannotDownloadFile\"\n      }\n    ]\n  }\n}\n",
      "stack":
          Error: {
            "error": {
              "code": 403,
              "message": "This file cannot be downloaded by the user.",
              "errors": [
                {
                  "message": "This file cannot be downloaded by the user.",
                  "domain": "global",
                  "reason": "cannotDownloadFile"
                }
              ]
            }
          }

I've not yet confirmed but we must ensure this one error does not break the whole pdf files.
Also we need to better understand when this error occurs.

@zereraz zereraz added bug Something isn't working server all server related tasks durability make the system more robust to failures labels Feb 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working durability make the system more robust to failures server all server related tasks
Projects
None yet
Development

No branches or pull requests

1 participant