Lesson 2.4 - Unable to view newly created 'Create a FAQ page' project in Experience Manager perspective

I get the following errors:



Hey jquintos, your front end is likely not properly connected to the Delivery API. Review the first exercise when you set up the env file. You can also share your .env file here for review.

Here’s my .env file

# Copyright 2020-2023 Bloomreach
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#   http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# HTTPS=true

NEXT_PUBLIC_BRXM_ENDPOINT=https://brx-content-training11.bloomreach.io/delivery/site/v1/channels/brx-saas/pages

# NEXT_PUBLIC_APOLLO_SERVER_URI=http://localhost:4000
# NEXT_PUBLIC_DEFAULT_CONNECTOR=commercetools# NEXT_PUBLIC_DISCOVERY_ACCOUNT_ID=
# NEXT_PUBLIC_DISCOVERY_DOMAIN_KEY=
# NEXT_PUBLIC_DISCOVERY_AUTH_KEY=
# NEXT_PUBLIC_DISCOVERY_VIEW_ID=
# NEXT_PUBLIC_DISCOVERY_CATALOG_VIEWS=
# NEXT_PUBLIC_DISCOVERY_CUSTOM_ATTR_FIELDS=
# NEXT_PUBLIC_DISCOVERY_CUSTOM_VARIANT_ATTR_FIELDS=
# NEXT_PUBLIC_DISCOVERY_CUSTOM_VARIANT_LIST_PRICE_FIELD=
# NEXT_PUBLIC_DISCOVERY_CUSTOM_VARIANT_PURCHASE_PRICE_FIELD=
# NEXT_PUBLIC_BR_ENV_TYPE=
# NEXT_PUBLIC_BR_ACCOUNT_NAME=
# NEXT_PUBLIC_BR_MULTI_TENANT_SUPPORT=
# NEXT_PUBLIC_PERSONALIZATION_PROJECT_TOKEN=
# NEXT_PUBLIC_PERSONALIZATION_API_URL=

Hey jquintos, I opened your environment to investigate and found the problem. In your .env file, you name the Delivery URL as the following
NEXT_PUBLIC_BRXM_ENDPOINT=https://brx-content-training11.bloomreach.io/delivery/site/v1/channels/brx-saas/pages

You did not name your channel “BrX SaaS”, instead you named it “BrXSaaS”. As a result, your channel ID is not brx-saas but brxsaas. You need to use the correct channel ID. The simplest solution here will be to update your env and leave the channel name as it is. Keep in mind that any interactions you make with the Delivery API will deviate from the documents in the training because of this.

NEXT_PUBLIC_BRXM_ENDPOINT=https://brx-content-training11.bloomreach.io/delivery/site/v1/channels/brxsaas/pages

1 Like