aem-headless-client-js icon indicating copy to clipboard operation
aem-headless-client-js copied to clipboard

Cannot get any content fragment on publish instance

Open alexisle-roy opened this issue 11 months ago • 1 comments

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

alexisle-roy avatar Jul 07 '23 08:07 alexisle-roy