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

Staging Citation page: "Notify Me of Updates" button is not loading #3228

Open
pdcp1 opened this issue Nov 19, 2024 · 0 comments
Open

Staging Citation page: "Notify Me of Updates" button is not loading #3228

pdcp1 opened this issue Nov 19, 2024 · 0 comments
Labels
Type: Bug Something isn't working

Comments

@pdcp1
Copy link
Collaborator

pdcp1 commented Nov 19, 2024

Important note: In Production is working fine ✅

In Staging and any Preview link, the Notify Me of Updates button is not loading and is showing a GraphQL error.

image

Additional information

GraphQL query:

{
    "operationName": "FindUserSubscriptions",
    "variables": {
        "filter": {
            "userId": {
                "EQ": "673c95388261248b43b76e1c"
            },
            "incident_id": {
                "EQ": 808
            }
        }
    },
    "query": "query FindUserSubscriptions($filter: SubscriptionFilterType!) {\n  subscriptions(filter: $filter) {\n    _id\n    incident_id {\n      incident_id\n      title\n      __typename\n    }\n    entityId {\n      entity_id\n      name\n      __typename\n    }\n    userId {\n      userId\n      __typename\n    }\n    type\n    __typename\n  }\n}"
}

Response:

{
    "errors": [
        {
            "message": "Not Authorised!",
            "path": [
                "subscriptions"
            ],
            "extensions": {
                "code": "INTERNAL_SERVER_ERROR",
                "stacktrace": [
                    "Error: Not Authorised!",
                    "    at normalizeOptions (/var/task/site/gatsby-site/netlify/functions/graphql.js:129014:32)",
                    "    at shield (/var/task/site/gatsby-site/netlify/functions/graphql.js:129019:29)",
                    "    at getSchema (/var/task/site/gatsby-site/netlify/functions/graphql.js:133087:25)",
                    "    at Object.<anonymous> (/var/task/site/gatsby-site/netlify/functions/graphql.js:149107:19)",
                    "    at Module._compile (node:internal/modules/cjs/loader:1364:14)",
                    "    at Module._extensions..js (node:internal/modules/cjs/loader:1422:10)",
                    "    at Module.load (node:internal/modules/cjs/loader:1203:32)",
                    "    at Module._load (node:internal/modules/cjs/loader:1019:12)",
                    "    at Module.require (node:internal/modules/cjs/loader:1231:19)",
                    "    at require (node:internal/modules/helpers:177:18)"
                ]
            }
        }
    ],
    "data": {
        "subscriptions": null
    }
}
@pdcp1 pdcp1 added the Type: Bug Something isn't working label Nov 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant