- Mark as New
- Follow
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
Hi @eldhov19157560 - do you have the activation ID of the invocation which you think there should be logs but not seeing them with `aio rt activation logs ID`?
In an SPA created by the Firefly generator with react spectrum, you can add the logging header to App.js so that it is enforced during your development:
async function actionWebInvoke (actionName, headers = {}, params = {}) {
console.log('params.url = ', params)
if (!actionName || !actions[actionName]) {
throw new Error(`Cannot fetch action '${actionName}' as it doesn't exist.`)
}
const response = await fetch(actions[actionName], {
method: 'post',
headers: {
'Content-Type': 'application/json',
'x-ow-extra-logging': 'on',
...headers
}
}
}
Views
Replies
0 Likes
Total Likes