since ‎24-01-2018
4 hours ago
duypnguyen
Employee
Re: Error: getaddrinfo EAI_AGAIN developers.adobe.io
Avatar

duypnguyen

Employee

duypnguyen
- Project Firefly
Hi @gokula - could you try updating your CLI to the latest version with this command:npm install -g @adobe/aio-cliMake sure that all the plugins are "core" in the output of this command:aio plugins --coreThen run the "aio app init " command again.

Views

23

Likes

0

Replies

1
Re: Creating a Namespace and retrieving the credentials
Avatar

duypnguyen

Employee

duypnguyen
- Adobe I/O Cloud Extensibility
@gokula - selecting Generic under Actions is the right way to go as we don't have yet a template for Launch API. In that action you can write any code, including calling Launch API using node-fetch.Events and CI/CD are optional for the app. It depends on your needs to add them or not. If not now, you can also add them anytime in the future with "aio app add ...".

Views

20

Like

1

Replies

0
Re: "error": "missing parameter(s) 'tenant'" at Customer...
Avatar

duypnguyen

Employee

duypnguyen
- Project Firefly
@navink386520 - could it be that the tenant value you are using is not correct? and verify the tenant name with Campaign techops?

Views

2

Likes

0

Replies

0
Re: Error: getaddrinfo ENOTFOUND
Avatar

duypnguyen

Employee

duypnguyen
- Project Firefly
@navink386520 - I couldn't see your entire web page, but my guess is that you are trying to invoke the "get-profiles" action?It requires the Adobe auth token which is not automatically included when you access the localhost URL. On the other hand, it is included if you access the "experience.adobe.com/..." URL outputted by the app run command.I recommend to go through this codelab to understand the details: https://adobeio-codelabs-campaign-standard-adobedocs.project-helix.page/.This is mentione...

Views

28

Likes

0

Replies

0
Re: Initialization has failed due to: There was an error...
Avatar

duypnguyen

Employee

duypnguyen
- Adobe I/O Runtime
@RossMyronenko- we recommend to use AIO CLI for developing your application with I/O Runtime. It takes care of building, packaging and deploying your actions, without manually working with zip files.More details are available at https://github.com/AdobeDocs/project-firefly.

Views

30

Likes

0

Replies

0
Re: Is Adobe IO Licensed?
Avatar

duypnguyen

Employee

duypnguyen
- Adobe I/O Runtime
hi @mazumbha, for I/O Runtime, you could apply for the trial using the link above. That should be enough to give you the development access for your SSR use case.

Views

45

Likes

0

Replies

0
Re: Request URL to consume slack events
Avatar

duypnguyen

Employee

duypnguyen
- Adobe I/O Runtime
@Anil_Umachigi, It's great that you are now unblocked! Please let us know if you have further questions.

Views

39

Likes

0

Replies

0
Re: Request URL to consume slack events
Avatar

duypnguyen

Employee

duypnguyen
- Adobe I/O Runtime
@Anil_Umachigi - great to hear that you found the articles and videos helpful! About slack events, once you configure the webhook URL as the web action URL from Runtime, slack would automatically send events to your action (invoking it). Each time results in an activation in Runtime. You can get the event payload from `params` in the action code.

Views

66

Likes

0

Replies

0
Re: Is Adobe IO Licensed?
Avatar

duypnguyen

Employee

duypnguyen
- Adobe I/O Runtime
Hi @mazumbha - Could you please elaborate what Adobe I/O represents in this scenario? This name is an umbrella for multiple technologies.As you mentioned Server side rendering, I assume you may want to try Adobe I/O Runtime.You can request for a trial following the instruction here: https://www.adobe.io/apis/experienceplatform/runtime/docs.html#!adobedocs/adobeio-runtime/master/overview/getting_access.md.For the official license, I propose that you talk to your Adobe sales rep to learn more abou...

Views

65

Likes

0

Replies

2
Re: "error": "request is invalid, reason: failed authoriz...
Avatar

duypnguyen

Employee

duypnguyen
- Project Firefly
@deepakkv - Here are some more details on troubleshooting the error you mentioned: https://github.com/AdobeDocs/project-firefly/blob/master/getting_started/common_troubleshooting.md#action-authentication-errors. Hope it is helpful!

Views

75

Likes

0

Replies

0
Re: Request URL to consume slack events
Avatar

duypnguyen

Employee

duypnguyen
- Adobe I/O Runtime
@Anil_Umachigi - do you work with your app using AIO CLI? If not, our recommendation is to go with it, and this documentation portal would be useful to get started: https://www.adobe.io/apis/experienceplatform/project-firefly/docs.html.Specifically, what you need as a request URL for slack is a web action in I/O Runtime. More details at: https://github.com/AdobeDocs/adobeio-runtime/blob/master/guides/creating_actions.md#invoking-web-actions.From the action, you can make calls to any URL (such as...

Views

80

Like

1

Replies

4
Re: Use Case project firefly.
Avatar

duypnguyen

Employee

duypnguyen
- Project Firefly
Hi @gokula - If you want to discuss about your use case with Project Firefly, feel free to send an email to us at iodev@adobe.com.We provide all the docs you need to get started with Project Firefly at: https://www.adobe.io/apis/experienceplatform/project-firefly/docs.html.Specifically you may want to go through the step-by-step guide for creating your first Firefly app: https://www.adobe.io/apis/experienceplatform/project-firefly/docs.html#!AdobeDocs/project-firefly/master/getting_started/first...

Views

69

Likes

0

Replies

0
Re: creating adobe access token in a headless action
Avatar

duypnguyen

Employee

duypnguyen
- Project Firefly
@1982luca - could you try adding this `@adobe/aio-lib-ims` to the list of dependencies in package.json file, then `npm install`, and redeploy your app?

Views

156

Likes

0

Replies

0
Re: Trigger Project Firefly execution using OpenWhisk alarms
Avatar

duypnguyen

Employee

duypnguyen
- Project Firefly
Hi @prodriguezgarcia, what do you see from the logs if you do `aio activation logs ID`, and you pick any ID from the error line of the alarm? Could you also share the manifest definitions of the action, trigger and rule for this alarm?

Views

159

Likes

0

Replies

0
Re: adobe io runtime closed ports
Avatar

duypnguyen

Employee

duypnguyen
- Adobe I/O Cloud Extensibility
@vmenendez - I could run an action that connects to a test SFTP server. Below is the relevant code extract. const sftpClient = require('ssh2-sftp-client') async function main (params) { let sftp = new sftpClient() const options = { host: 'test.rebex.net', port: '22', username: 'demo', password: 'password' } await sftp.connect(options); const sftpList = await sftp.list('/') logger.debug(`${response.statusCode}: successful request`) await sftp.end() // return your response }

Views

350

Likes

0

Replies

0
Re: Creating a Namespace and retrieving the credentials
Avatar

duypnguyen

Employee

duypnguyen
- Adobe I/O Cloud Extensibility
Hi @gokula - can you try following the instruction here to "Create new project from template"? https://www.adobe.io/apis/experienceplatform/project-firefly/docs.html#!AdobeDocs/project-firefly/master/getting_started/first_app.mdThis is the latest version. The one you tried before might be outdated.

Views

495

Likes

0

Replies

5
Re: Controlling which action is called
Avatar

duypnguyen

Employee

duypnguyen
- Project Firefly
Hi @robyea - it is not recommended to create 2 separate apps in the same workspace, or more precisely even in the same project. You should either:1. init a single app with both ACS and Analytics templates, if your app integrates both services; or2. create 2 separate projects in Developer Console, and init 2 apps for each project - one ACS and one Analytics. Please check out the blog post and video about Firefly projects and workspaces.

Views

141

Like

1

Replies

0
Re: Unable to make call to Campaign API
Avatar

duypnguyen

Employee

duypnguyen
- Project Firefly
Could you try putting the whole ".campaign-sandbox.adobe.com" as tenant ID? I could recall that I used this "campaign-sandbox" pattern once and needed to give the full URL. Ideally you should contact your ACS techops who can share with you the exact tenant ID.

Views

228

Likes

0

Replies

0
Re: Unable to make call to Campaign API
Avatar

duypnguyen

Employee

duypnguyen
- Project Firefly
would be useful to console.log the value of "params.apiKey", "params.tenant" and "token" before the "CampaignStandard.init" line, and verify that they are valid using the postman call as dr_venture recommended. The error "400 Bad Request" suggests that some of these values might be null of wrong.

Views

249

Likes

0

Replies

0
Re: Add custom header in Adobe IO call
Avatar

duypnguyen

Employee

duypnguyen
- Adobe I/O Runtime
Ok - as mentioned earlier you could add custom headers using any HTTP lib. Example with node-fetch:fetch('https://example.com/getUser', { method: 'get', headers: { 'X-My-Custom-Header': 'value-v' } })

Views

177

Likes

0

Replies

0
Re: Unable to make call to Campaign API
Avatar

duypnguyen

Employee

duypnguyen
- Project Firefly
@shelly-goel - do you see some logs from the activation? or any code to share?

Views

267

Likes

0

Replies

0
Re: Add custom header in Adobe IO call
Avatar

duypnguyen

Employee

duypnguyen
- Adobe I/O Runtime
Hi @saleemr22640314 - is your question specifically about writing an Adobe I/O Runtime action making GET requests to 3rd party API? The action is written in node.js, and you could leverage any HTTP request library such as node-fetch.If you ask about other Adobe I/O services, please post this to the respective forum so that those teams will provide more specific support.

Views

209

Likes

0

Replies

2
Re: ACS API for Deliveries to create Firefly app
Avatar

duypnguyen

Employee

duypnguyen
- Adobe I/O Cloud Extensibility
Hi @shelly-goel - good to hear that you found the codelab useful.1. I don't know much about ACS to answer this. Please try this question in the ACS support forum: https://experienceleaguecommunities.adobe.com/t5/adobe-campaign-standard/ct-p/adobe-campaign-standard-community2. In the mentioned use case, when a workflow is created and run (e.g. with an "External API" step that calls the web URL of the Firefly app), its workflow ID is persisted using aio-lib-state. You can then load the workflow fr...

Views

360

Likes

0

Replies

0
Re: ACS API for Deliveries to create Firefly app
Avatar

duypnguyen

Employee

duypnguyen
- Adobe I/O Cloud Extensibility
Hi @shelly-goel -1. The SDK `aio-lib-campaign-standard` is a node.js interface of all the API exposed by ACS - listed in the documentation you referred to. If there is a resource not exposed by the API, you can neither access it with the Node SDK. Have you tried the "custom resource" in ACS the the data you need?2. We have a sample Firefly app as an ACS dashboard. It's not exactly the same as what you need, but could be a good reference. You may also find the below codelabs useful to get started...

Views

374

Likes

0

Replies

2
Re: How to debug Adobe I/O Runtime Actions during issues/...
Avatar

duypnguyen

Employee

duypnguyen
- Adobe I/O Runtime
cc @mhaack from CIF team.

Views

300

Likes

0

Replies

0
Re: How to debug Adobe I/O Runtime Actions during issues/...
Avatar

duypnguyen

Employee

duypnguyen
- Adobe I/O Runtime
Hi @Sharma_Shruti - I am not aware of `use-aio-cache` in I/O Runtime config. Also not sure where you get the serverless.yml file? Are you a client of Adobe CIF, which uses the serverless framework?

Views

303

Likes

0

Replies

0
Re: I/O Runtime with Azure (Blobs) Storage
Avatar

duypnguyen

Employee

duypnguyen
- Adobe I/O Runtime
Hi @wiki - yes it is possible to connect to Azure Blob storage or any other cloud service in your Runtime action.Adding npm libraries to your runtime action is of course possible.The simplest way is zipping everything and deploy to your action.However, our recommendation is creating Project Firefly apps which take care of the npm dependencies and deployment.

Views

191

Likes

0

Replies

1
Re: How to debug Adobe I/O Runtime Actions during issues/...
Avatar

duypnguyen

Employee

duypnguyen
- Adobe I/O Runtime
Hi @Sharma_Shruti - good questions. Please find my answers below. 1. You could use `--since` and `--upto` flags to specify the timestamp, and if there are too many activations, `--limit` and `--skip` would help to traverse the pages. Example: wsk activation list --since 1605609603069 --upto 1605780223069Please note that, activation TTL is 7 days. 2. Activation logs are generated by the action being executed. If you use console.log in your code, they prints the logs out. 3. As mentioned in point ...

Views

346

Likes

0

Replies

5
Re: Error while running the first firefly project
Avatar

duypnguyen

Employee

duypnguyen
- Adobe I/O Cloud Extensibility
Thanks for sharing the info @Saif . I don't see any problem with the setup, all versions are up to date. There is a .env file inside your project directory. Do you see: AIO_runtime_apihost=https://adobeioruntime.net ? If not please add it.It's possible that you have a different host in ~/.wskprops.Related issue: https://github.com/adobe/aio-cli-plugin-app/issues/267

Views

609

Likes

0

Replies

1
Re: Error while running the first firefly project
Avatar

duypnguyen

Employee

duypnguyen
- Adobe I/O Cloud Extensibility
@Saif - could you share the output of this command `aio info` ?

Views

618

Likes

0

Replies

3