Hello there Forest admin folks,
We’ve currently got a weird issue with one of our smart actions,
Expected behaviour
We’re currently expecting a smart action with endpoint /forest/actions/mark-as-ready
to work consistently for all users.
Actual behaviour
This smart action endpoint seems to work for most users: however, for some users it doesn’t seem to work at all. For a particular user with the following config:
- role: Programme Team
- permission to use the action in Production
You can see below the request made by their browser:
curl 'https://prodhub-api.thenational.academy/forest/actions/mark-as-ready' \ -H 'authority: prodhub-api.thenational.academy' \ -H 'sec-ch-ua: "Chromium";v="94", "Microsoft Edge";v="94", ";Not A Brand";v="99"' \ -H 'accept: application/json' \ -H 'content-type: application/json' \ -H 'authorization: Bearer bearer-token-here' \ -H 'sec-ch-ua-mobile: ?0' \ -H 'user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.71 Safari/537.36 Edg/94.0.992.38' \ -H 'sec-ch-ua-platform: "Windows"' \ -H 'origin: [https://prodhub.thenational.academy](https://prodhub.thenational.academy/)' \ -H 'sec-fetch-site: same-site' \ -H 'sec-fetch-mode: cors' \ -H 'sec-fetch-dest: empty' \ -H 'referer: https://prodhub.thenational.academy/' \ -H 'accept-language: en-GB,en;q=0.9,en-US;q=0.8' \ -H 'cookie: oakData={%22userId%22:%22a9f4803d-e544-4afb-a018-884d17220dbd%22}; _ga=GA1.2.545874265.1633938139; _gid=GA1.2.1630940283.1633938139; _hjid=fba5a2d5-99e3-4fa8-927c-b16d2a9b6cd3; hubspotutk=fb7c4ec47c538325691748c10c7cc50c; __hssrc=1; intercom-id-fx7fosz0=a3e3cef9-c21e-4e5b-ac9f-c2b6ad53bb91; intercom-session-fx7fosz0=; ajs_anonymous_id=c474dacc-610f-42bd-b85f-1903fcc4a7da; _fbp=fb.1.1633943978636.569209688; ajs_user_id=56032; _cioid=56032; _hjAbsoluteSessionInProgress=0; __hstc=83091209.fb7c4ec47c538325691748c10c7cc50c.1633938138977.1633938138977.1633963105061.2; cookie-consents=%5B%5B%22metomic-consented-pol%3A3c779fd2-9d6b-4613-8eed-e746cb669d7e%22%2C%22%7B%5C%22enabled%5C%22%3Atrue%2C%5C%22version%5C%22%3A%5C%223.0.0%5C%22%7D%22%5D%2C%5B%22metomic-consented-pol%3A68beb01a-65f3-481d-b9db-be05ad95c5a1%22%2C%22%7B%5C%22enabled%5C%22%3Atrue%2C%5C%22version%5C%22%3A%5C%223.0.0%5C%22%7D%22%5D%2C%5B%22metomic-consented-pol%3A8fd55105-adc2-4c33-baf9-a8d75961eeff%22%2C%22%7B%5C%22enabled%5C%22%3Atrue%2C%5C%22version%5C%22%3A%5C%222.0.0%5C%22%7D%22%5D%2C%5B%22metomic-consented-pol%3Ab109d120-ec88-4dd7-9f6e-fc67ab6f0ffb%22%2C%22%7B%5C%22enabled%5C%22%3Atrue%2C%5C%22version%5C%22%3A%5C%223.0.0%5C%22%7D%22%5D%5D; __hssc=83091209.2.1633963105061; __cf_bm=3nkeokBwWheDHHhVpHYZz_9Tb6kCvb8lI6aJC7xYpyc-1633964015-0-ARvv9QYxIwGXl72k5u4SZB7GGpLwpzE/O7AIWXEICvr/o093lIRd+JlBOmvXNlJHXEdDU0G/3n9hbeR6N7dgxtd+GH+tb/4T1MdL0CLP8M2y8JyBPpCAL1XEgIQouVI5XW9fFY8Pfm3Urw+e6hqx2dwBqiaeDfvdyVhOJA1UOgsc; _gat=1' \ --data-raw '{"data":{"attributes":{"values":{},"ids":["7562"],"collection_name":"lessons","parent_collection_name":null,"parent_collection_id":null,"parent_association_name":null,"all_records":false,"all_records_subset_query":{},"all_records_ids_excluded":[],"smart_action_id":"lessons-Mark@@@as@@@ready"},"type":"custom-action-requests"}}' \ --compressed
Failure Logs
In dev tools, this endpoint currently responds with 403 stating that it is Forbidden.
I’ve also double checked Cloudflare and can confirm that cloudflare is not challenging or blocking this request.
Context
Please provide any relevant information about your setup.