Hi, I run into an error when botpress try to access to the flowise API. Plz help me if there is anyhing wrong with my code or API. Thank you so much!
GET http://localhost:3000/api/v1/prediction/2fc77fd8-ac05-403f-a653-867e0c99bcd1: 404
Response:
:"Not found because of proxy error: Error: connect ECONNREFUSED 127.0.0.1:3000"
Error: Request failed with status code 404
Execute code:
const question = workflow.question;
const apiUrl = http://localhost:3000/api/v1/prediction/2fc77fd8-ac05-403f-a653-867e0c99bcd1;
const response = await axios.get(apiUrl);
workflow.apiResponse = _.get(response, 'data.answer', '');