since ‎22-07-2020
‎06-11-2020
In_Na
Level 1
Re: error: The API host is not valid: An API host must be...
Avatar

In_Na

In_Na
- Project Firefly
@duypnguyenActually I got the error " Cannot read property 'state' of undefined" at the App.js at the line "const profiles = this.state.profiles"

Views

91

Likes

0

Replies

0
Re: error: The API host is not valid: An API host must be...
Avatar

In_Na

In_Na
- Project Firefly
@duypnguyen Actually I got the error " Cannot read property 'state' of andefined" at the app.js at this line "const profiles = this.state.profiles".Here is my ActionForm.js /* * */ import React, { useState } from 'react' import PropTypes from 'prop-types' import ErrorBoundary from 'react-error-boundary' import { Flex, Heading, Form, Picker, TextArea, Button, ActionButton, StatusLight, ProgressCircle, Item, Text, View } from '@adobe/react-spectrum' import Function from '@spectrum-icons/workflow/...

Views

55

Likes

0

Replies

0
Re: error: The API host is not valid: An API host must be...
Avatar

In_Na

In_Na
- Project Firefly
Hello @duypnguyen, I'm trying to follow this tutorial "Lesson 4: List All Customer Profiles on the UI" : https://adobeio-codelabs-campaign-standard-adobedocs.project-helix.page/?src=/lessons/lesson4.html but it doesn't work. I'm wondering if there is another link for the same tutorial which is up to date please ? Thank you

Views

111

Likes

0

Replies

0
Re: error: The API host is not valid: An API host must be...
Avatar

In_Na

In_Na
- Project Firefly
Hello @duypnguyen, Yes It works ! Thank you for your help !

Views

128

Likes

0

Replies

0
Re: error: The API host is not valid: An API host must be...
Avatar

In_Na

In_Na
- Project Firefly
Hello @duypnguyen,Thank you for your answer.Actually, I don't know where to find the curl command. I'm a beginner using this tool.I have solved the error "The API host is not valid: An API host must be provided". It was about setting up the .wskprops file. But, I still can't invoke the action "generic". I get the error "cannot authorize request, reason: missing x-gw-ims-org-id header".

Views

158

Likes

0

Replies

0
Re: error: The API host is not valid: An API host must be...
Avatar

In_Na

In_Na
- Project Firefly
Hello @duypnguyen, Yes, I'm trying to set up my Project Firefly environment. Thank you for the docs. I'm now trying to invoke the action "generic" (6.2 Trying the Sample Application). I put the token into this following format {"Authorization":"Bearer eyJ4NXxxxxxxxxxxxxx"} and I put it in the "header" but I get the error "cannot authorize request, reason: missing authorization header". Is it the right format ? Can you help me fix this error please ? Thank you.

Views

183

Likes

0

Replies

0
error: The API host is not valid: An API host must be provided.
Avatar

In_Na

In_Na
- Project Firefly
Hello, I'm trying to set up my environment by following the instructions in this link https://github.com/AdobeDocs/adobeio-runtime/blob/stage/quickstarts/setup.md .In order to test wsk CLI, I I executed the command "wsk list" but it shows the error "The API host is not valid: An API host must be provided."Could you please tell me how to fix this error?Thank you.

Views

224

Likes

0

Replies

12