A strange error on the frontend blocking the functionality of the dashboard

Feature(s) impacted

Dashboard, smart actions.

Observed behavior

After entering the project from any account, an error occurs in the console.


message: "Ember Data Request GET https://api.forestadmin.com/api/users/82871 returned a 404\nPayload (application/json; charset=utf-8)\n[object Object]"

When I try to run smart action another error occurs

Context

This is a production environment. There are no errors on the backend. No recent changes were made on our end. Only this error in the browser suddenly appeared.

Hi @Igor_Kovalenko,

Do you know exactly when it started to break?
Does it impact all your project users?

The first 404 error in your logs might not be problematic for the app.
Maybe we should focus on the Smart Action issue first, and dig into it to get more context.

Thanks for your help.

Hello @Igor_Kovalenko,

Thanks for the report.

What do you mean when you said that the functionality of your dashboard is blocked?
Do you have any screen / error message to share when in this situation?

Thanks.

Hello, @anon34731316, @arnaud.

Do you know exactly when it started to break?
We received error report just few hours ago from our client.

Does it impact all your project users?
Yes, impact all project users.

Sorry for the misunderstanding. Unable to execute smart action.
Received the following response when running


Request:

Request URL: https://admin.flip-md.com/forest/actions/approve?timezone=Europe%2FKiev
Request Method: POST
Status Code: 400 
Remote Address: ***
Referrer Policy: origin

**Response headers:**
access-control-allow-credentials: true
access-control-allow-headers: Authorization, Content-Type, Forest-Context-Url
access-control-allow-methods: PUT, GET, POST, OPTIONS, DELETE
access-control-allow-origin: https://app.forestadmin.com
access-control-max-age: 1728000
alt-svc: h3=":443"; ma=86400, h3-29=":443"; ma=86400
cf-cache-status: DYNAMIC
cf-ray: 793cfd238f7335c9-WAW
content-length: 35
content-type: application/json; charset=utf-8
date: Fri, 03 Feb 2023 17:46:56 GMT
etag: W/"23-IUkiEe9Acj89nNCwHFQVAjNrlng"
nel: {"success_fraction":0,"report_to":"cf-nel","max_age":604800}
report-to: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v3?s=yEGY1tB%2BpXsXaBBhQBteGY0dDn7DQV%2BVteXRg7%2BJOYJUcYZmS2wOXPp6vxXmW4ZMsbDRn02gCgiLbugIkcbI0kFOvwBU%2BIyixoECAnrwWQZcjjkTU78jUASVfAevTHTj%2FMyzlQ%3D%3D"}],"group":"cf-nel","max_age":604800}
server: cloudflare
strict-transport-security: max-age=2592000; includeSubDomains
vary: Origin
x-content-type-options: nosniff
x-powered-by: Express

**Request headers**
:authority: admin.flip-md.com
:method: POST
:path: /forest/actions/approve?timezone=Europe%2FKiev
:scheme: https
accept: application/json
accept-encoding: gzip, deflate, br
accept-language: en-GB,en-US;q=0.9,en;q=0.8,ru;q=0.7,uk;q=0.6
authorization: Bearer ***
content-length: 1262
content-type: application/json
dnt: 1
forest-context-url: https://app.forestadmin.com/flipMD/Production/Operations/data/consultantsAdminView/index?segmentId=***
origin: https://app.forestadmin.com
referer: https://app.forestadmin.com/
sec-ch-ua: "Not_A Brand";v="99", "Google Chrome";v="109", "Chromium";v="109"
sec-ch-ua-mobile: ?0
sec-ch-ua-platform: "Windows"
sec-fetch-dest: empty
sec-fetch-mode: cors
sec-fetch-site: cross-site
user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36
Body:
{"error":"Can't find api protocol"}

Thanks

Thanks for the insights.

It looks like the issue (“Can’t find api protocol” message) comes from the data API you host.
Are you sure you did not change some customization code (especially on your Smart Actions)?
Do these Smart Actions call other APIs in their controller implementation?

1 Like

It seems you are right. There may be problems in the backend environment. I am currently investigating. Thanks for the help and sorry for the bother.

1 Like