since ‎24-01-2018
Online
duypnguyen
Employee
Re: error: The API host is not valid: An API host must be... duypnguyen - Project Firefly
@In_Na - it's hard to say without seeing your setup visually. Could you please share the curl command? How did you receive the token? In addition, you might find this doc useful: https://github.com/AdobeDocs/project-firefly/blob/master/getting_started/common_troubleshooting.md.
4
Views
0
Likes
0
Comments
Re: Adobe I/O runtime uses Couch DB or Cosmos DB duypnguyen - Adobe I/O Runtime
Hi @eldhov19157560 - I/O Runtime uses Cosmos DB to store user, action and activation records. Action code could be stored in Cosmos DB or a blob storage depending on its size. The information from your first link is accurate: https://www.adobe.io/apis/experienceplatform/runtime/docs.html#!adobedocs/adobeio-runtime/master/quickstart.md.It's worth mentioning that, as I/O Runtime is Saas based, the internal components may change anytime without affecting the users' code and deployment.Thanks for po...
25
Views
0
Likes
1
Answers
Re: error: The API host is not valid: An API host must be... duypnguyen - Project Firefly
Hi @In_Na - are you trying to set up your Project Firefly environment?The correct docs would be https://github.com/AdobeDocs/project-firefly/blob/master/getting_started/setup.md.Please let us know if you have further questions.
30
Views
0
Likes
3
Answers
Re: Send emails to user duypnguyen - Project Firefly
@ursboller - thanks for the details. I don't think there's an OOTB solution for this push notification / email mechanism with Experience Cloud Shell, but will check further. You could however set up the email sender using any node module such as https://nodemailer.com.
8
Views
0
Likes
0
Comments
Re: pass env vars to all actions duypnguyen - Project Firefly
I have created this GH issue for tracking purpose: https://github.com/adobe/aio-cli-plugin-runtime/issues/200
12
Views
0
Likes
0
Comments
Re: pass env vars to all actions duypnguyen - Project Firefly
Hi @ursboller - I just recall a way to share the variables across your actions without repeating it in the manifest per action.Because all actions are placed under the `__APP_PACKAGE__`, you could also set the default params of the package. Then you are able to get them in each action, just in the same manner as setting default params per action.This is not yet part of the manifest.yaml definition, but you could use the CLI, e.g. `aio runtime package update sample-app-0.0.1 --param name "Firefly...
21
Views
0
Likes
0
Answers
Re: Send emails to user duypnguyen - Project Firefly
Can you elaborate on the context of this ask? Is it about writing an action to send emails to a list of users?
42
Views
0
Likes
0
Comments
Re: aio-lib-files and list('/') duypnguyen - Project Firefly
Hi @ursboller - sorry I missed this thread earlier. I tested both "/" and ".", and got the same array of all files saved in my container. I have the aio-lib-files v1.1.1. Which version do you have?
10
Views
0
Likes
0
Answers
Re: pass env vars to all actions duypnguyen - Project Firefly
@ursboller - I don't have any update yet, but did bring it up for more elaborated discussions with the team. I hope to share a more insightful feedback to you within the next weeks.
32
Views
0
Likes
0
Comments
Re: Is there an SDK I can use for the data insertion API? duypnguyen - Project Firefly
Hi @oliverf82757722 , the Firefly SDK for Adobe Analytics only supports the API 2.0.Unfortunately the Data Insertion API is only available in API 1.4, not 2.0, according to: https://www.adobe.io/apis/experiencecloud/analytics/docs.html#!AdobeDocs/analytics-2.0-apis/master/migration-guide.md.Hence, you would need to make the HTTP requests using `node-fetch`.
46
Views
1
Like
1
Answers
Re: aio logs not working duypnguyen - Project Firefly
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 actio...
61
Views
0
Likes
0
Comments
Re: Actions in Firefly vs IO Runtime duypnguyen - Project Firefly
Hi @eldhov19157560 - the two CLI wsk and aio use two different sources of truth for namespace credentials.wsk relies on the .wskprops file in your home folderaio relies on the .env file in your project folder.Please make sure that those files have the correct credentials set up for your namespace.More details at: https://github.com/AdobeDocs/project-firefly/blob/master/getting_started/first_app.md#5-anatomy-of-a-project-firefly-application
58
Views
1
Like
0
Answers
Re: aio logs not working duypnguyen - Project Firefly
Hi @ursboller, ok now I got your question. Indeed there are 2 points in it.1. Log messages as direct output of the `aio app run (--local)` command. This is only possible in local mode as you pointed out. It is not possible in non-local mode because of the limitation in the second point below. In that case, you could do `aio app logs` to see logs.2. Activation records and logs only persisted for async invocations (by default): this is the point I referred to in the earlier comment. Blocking invoc...
109
Views
0
Likes
0
Comments
Re: aio logs not working duypnguyen - Project Firefly
yes this is an example:curl --location --request GET 'https://my-namespace-stage.adobeioruntime.net/api/v1/web/my-app-0.0.1/read-state?key=name' \ --header 'X-OW-EXTRA-LOGGING: on'
128
Views
0
Likes
0
Comments
Re: aio logs not working duypnguyen - Project Firefly
Hi @ursboller - what you observed with no logs for web invocation is expected, because the logs are not automatically persisted. For debugging you could use a flag to force it. More background here: https://github.com/AdobeDocs/adobeio-runtime/blob/master/guides/logging_monitoring.md#retrieving-activations-for-blocking-successful-calls
154
Views
0
Likes
7
Answers
Re: How can I access the logs that are output by my actions? duypnguyen - Project Firefly
Hi @oliverf82757722 - here are our docs about application logging:App logs in general: https://github.com/AdobeDocs/project-firefly/blob/master/guides/application_logging.mdMore specific to action logs: https://github.com/AdobeDocs/adobeio-runtime/blob/master/guides/logging_monitoring.md
56
Views
1
Like
0
Answers
Re: pass env vars to all actions duypnguyen - Project Firefly
Ok - I don't think it is possible with I/O Runtime today, but agree that it's a very handy feature to have in "apps". Let me do some searches if any related enhancement ticket exists.
81
Views
0
Likes
0
Comments
Re: list for aio-lib-state duypnguyen - Project Firefly
yes - the ops UI will support both State and Files SDK, CRUD stuff like you have in the screenshot (not editing text files though, I think it's a more specific feature). Another feature in that release which might be of your interest is the possibility to set TTL for files (similar to state), so that the files are automatically cleaned up if their life time is known.
70
Views
0
Likes
0
Comments
Re: list for aio-lib-state duypnguyen - Project Firefly
@ursboller - I got informed that the state ops UI is targeted in Q1 2021 timeframe.
88
Views
0
Likes
0
Comments
Re: access CORE logger results from within an action? duypnguyen - Project Firefly
Hi @ursboller - It would be possible using the openwhisk npm, particularly ow.activations.logs (I couldn't find the example in docs, but here is the API: https://github.com/apache/openwhisk-client-js/blob/master/lib/activations.js#L35). I am yet to try it though, will do later today.
77
Views
0
Likes
2
Answers
Re: pass env vars to all actions duypnguyen - Project Firefly
just to clarify - do you want to use some custom params you set yourself, or the default params available as __OW_* ? For default params you could do e.g. `process.env.__OW_NAMESPACE` (but should be careful that you may accidentally expose your namespace credentials).
111
Views
0
Likes
0
Comments
Re: list for aio-lib-state duypnguyen - Project Firefly
@ursboller - thanks for the screenshots. This UI will also be available as part of the Firefly developer tooling. Let me follow up with the team about its timeline.
100
Views
0
Likes
0
Comments
Re: list for aio-lib-state duypnguyen - Project Firefly
Hi @ursboller - currently we don't expose "list" of all values in aio-lib-state.We are working on a local monitoring UI for state and files, so that as an app admin you have more controls over the files and values stored in state.However there is no plan to support "list" programmatically in state, as it has large impact on the SDK performance and security.Could you please share your use case for this feature?
132
Views
0
Likes
7
Answers
Re: What are MetaScopes and how can I find what I need to... duypnguyen - Project Firefly
glad to hear it worked 🙂 Not sure why the jwt-auth one requires the whole URL, but yes the aio-lib-ims only requires the scope name. That's the array you usually get by downloading the workspace details JSON from Adobe Developer Console.
58
Views
0
Likes
0
Comments
Re: What are MetaScopes and how can I find what I need to... duypnguyen - Project Firefly
Hi Oliver - yes you can read the docs here: https://github.com/adobe/aio-lib-ims
81
Views
0
Likes
0
Comments
Re: What are MetaScopes and how can I find what I need to... duypnguyen - Project Firefly
Hi @oliverf82757722 - for JWT token handling, we recommend to use @adobe/aio-lib-ims which is supported by Project Firefly. As a side note, regardless of the JWT library being used, it's important that your action in that case should not be exposed as a web action, which makes it accessible to the public.W.r.t. meta scopes, you should put them in an array, e.g. `metaScopes : ['ent_user_sdk']`.
103
Views
0
Likes
6
Answers
Re: breaking changes after "upgrade" - problems with "run... duypnguyen - Project Firefly
@ursboller - next time when you see something suspicious, you could try running the command with `--verbose`, which reveals some more details how things progress behind the scene.
64
Views
0
Likes
0
Comments
Re: creating adobe access token in a headless action duypnguyen - Project Firefly
awesome, thank you for confirming!
40
Views
0
Likes
0
Comments
Re: creating adobe access token in a headless action duypnguyen - Project Firefly
Hi @ursboller, @oliverf82757722 - a new version of @adobe/aio-lib-ims has been released, which fixes the issue reported earlier. I was able to get the token using this code.const { context, getToken } = require('@adobe/aio-lib-ims') const config = { client_id: params.client_id, client_secret: params.client_secret, technical_account_email: params.technical_account_email, technical_account_id: params.technical_account_id, meta_scopes: [ 'ent_campaign_sdk' ], ims_org_id: params.ims_org_id, private_...
82
Views
2
Likes
3
Answers
Re: "error": "missing parameter(s) 'tenant'" at Customer... duypnguyen - Project Firefly
hi @misterocean1112 - does the same call return profiles if you make a normal API call using the same tenant? For example: curl -X GET https://mc.adobe.io//campaign/profileAndServices/profile \ -H 'Content-Type: application/json' \ -H 'Authorization: Bearer ' \ -H 'Cache-Control: no-cache' \ -H 'X-Api-Key: '
53
Views
0
Likes
0
Comments