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

Cannot get any content fragment on publish instance #52

Open
alexisle-roy opened this issue Jul 7, 2023 · 1 comment
Open

Cannot get any content fragment on publish instance #52

alexisle-roy opened this issue Jul 7, 2023 · 1 comment

Comments

@alexisle-roy
Copy link

Expected Behaviour

Being able to retrieve created content fragment from a publish instance

Actual Behaviour

When trying to query the publish instance, i get this error:

AioCoreSDKError [AEMHeadlessError]: [AEMHeadless:REQUEST_ERROR] General Request error: Request failed with status code 404 Not Found.
    at new <anonymous> (/Users/username/Library/Documents/my-project/node_modules/.pnpm/@[email protected]/node_modules/@adobe/aio-lib-core-errors/src/AioCoreSDKErrorWrapper.js:33:9)
    at AEMHeadless.__handleRequest (/Users/username/Library/Documents/my-project/node_modules/.pnpm/@[email protected]/node_modules/@adobe/aem-headless-client-js/src/index.js:316:13)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Object.runQuery (webpack-internal:///../../libs/bp-front/shared/http/src/graphqlClient.ts:52:35)
    at async getPushContent (webpack-internal:///../../libs/bp-front/shared/api/getPushContent.ts:27:115)
    at async Promise.all (index 2)
    at async getServerSideProps (webpack-internal:///./src/pages/my-project/my-dashboard/index.tsx:88:93) {
  code: 'REQUEST_ERROR',
  sdk: 'AEMHeadless',
  sdkDetails: {
    serviceURL: 'https://publish-<specific-url>.adobeaemcloud.com/',
    endpoint: 'content/cq:graphql/my-project/endpoint.json'
  }
}

Reproduce Scenario (including but not limited to)

Query publish instance

Steps to Reproduce

  • Setup a graphql endpoint by following this guide
  • Create a content fragment
  • Try to query it

Platform and Version

@adobe/[email protected]

Sample Code that illustrates the problem

Logs taken while reproducing problem

@easingthemes
Copy link
Collaborator

General Request error: Request failed with status code 404 Not Found

Check Network, endpoint is missing. It can be CORS or publishing issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants