since ‎19-11-2009
‎12-01-2021
dr_venture
Employee
Re: Unable to make call to Campaign API
Avatar

dr_venture

Employee

dr_venture
- Project Firefly
Can you run the same calls in postman against the same campaign instance using the same auth token?

Views

102

Likes

0

Replies

0
Re: The Insights are showing strange data
Avatar

dr_venture

Employee

dr_venture
- Project Firefly
looks to be a bug. I have reported it.

Views

120

Likes

0

Replies

0
Re: Is there an SDK I can use for the data insertion API?
Avatar

dr_venture

Employee

dr_venture
- Project Firefly
Maintainer of the lib is a slacker

Views

137

Likes

0

Replies

0
Re: Is there an SDK I can use for the data insertion API?
Avatar

dr_venture

Employee

dr_venture
- Project Firefly
You can use this lib.https://www.npmjs.com/package/adobe-analytics-di Its a little dated but it works.

Views

140

Like

1

Replies

1
Re: Change "workspace" for local development
Avatar

dr_venture

Employee

dr_venture
- Project Firefly
https://medium.com/adobetech/project-firefly-how-to-projects-and-workspaces-9738d31338e7

Views

155

Likes

0

Replies

0
Re: How do I create a headless application?
Avatar

dr_venture

Employee

dr_venture
- Project Firefly
You sure?  If you need some help feel free to ask. 

Views

125

Like

1

Replies

0
Re: Change "workspace" for local development
Avatar

dr_venture

Employee

dr_venture
- Project Firefly
Go into the Adobe Developer Console and add all the services you need to the workspace your going to switch to. Then at a terminal do the followingaio console workspace listthen find the ID of the workspace you want to switch toaio console workspace select 12323123213thenaio app use -m

Views

180

Like

1

Replies

3
Re: Checking Access Credentials within an action
Avatar

dr_venture

Employee

dr_venture
- Project Firefly
that is cool. Should work nicely

Views

142

Likes

0

Replies

0
Re: Checking Access Credentials within an action
Avatar

dr_venture

Employee

dr_venture
- Project Firefly
I edited it to point out the scopes property which might be of use to you.

Views

164

Likes

0

Replies

0
Re: Checking Access Credentials within an action
Avatar

dr_venture

Employee

dr_venture
- Project Firefly
You should be able to decode the bearer token and get the following { "id" : "1600361729831_7c314c691", "client_id" : "UDPWeb1", "user_id" : "8E5E47DA4706D5D@AdobeID", "state" : "{\"session\":\"https://ims-na1.adobelogin.com/ims/session/v1/ZjZmMWE3YTQtmRlLS04RTVFNDdEQTQ3MDZENUQ1OTYmVJRA\"}", "type" : "access_token", "as" : "ims-na1", "fg" : "UY6ROZRAVLPBL37QAP4======", "sid" : "1599771421938_-8d32-425e-815d-b734beb48abc_ue1", "moi" : "db01", "c" : "kg9B1xnV4UpPgkVi/gQ==", "expires_in" : "8640000...

Views

172

Like

1

Replies

4
Re: Trigger another action from within an action
Avatar

dr_venture

Employee

dr_venture
- Project Firefly
Rule and Trigger is the cleanest way but you can also do this if neededconst openwhisk = require('openwhisk') const options = { apihost: 'HOST:PORT', api_key: 'API_KEY_HERE', api: process.env['__OW_API_HOST'] + "/api/v1/" } let wsk = openwhisk(options) let invokeParams = {"stuff":"my stuff","topass":"in","asparams":"more data"} wsk.actions.invoke({ actionName:"/my/namespace/actionname", blocking: false, result: false, params:invokeParams });

Views

121

Like

1

Replies

0
Re: Hello World App Error - Something Went Wrong
Avatar

dr_venture

Employee

dr_venture
- Project Firefly
confirmed.

Views

1.1K

Likes

0

Replies

0
Re: App initialization fails
Avatar

dr_venture

Employee

dr_venture
- Project Firefly
Ok, engineering patched the issue up. Please update Adobe I/O CLI to the latest and try to do init again. Let us know if this does not fix the issue for you. npm i -g @adobe/aio-cli

Views

491

Like

1

Replies

1
Re: App initialization fails
Avatar

dr_venture

Employee

dr_venture
- Project Firefly
Engineer is working on a fix. Let you know after we test the fix. Sorry for the miss on that one.

Views

494

Likes

0

Replies

0
Re: App initialization fails
Avatar

dr_venture

Employee

dr_venture
- Project Firefly
Reported the issue to core developers. When they post a fix I will let you know.

Views

502

Likes

0

Replies

0
Re: Privacy Service API request from Firefly Sample App
Avatar

dr_venture

Employee

dr_venture
- Project Firefly
glad your fixed up

Views

528

Likes

0

Replies

0
Re: Privacy Service API request from Firefly Sample App
Avatar

dr_venture

Employee

dr_venture
- Project Firefly
I will still look around and see if we have helper libs. If not maybe we should make an AdobeFetch that will auto wrap up and pass the auth for you.

Views

529

Likes

0

Replies

0
Re: Privacy Service API request from Firefly Sample App
Avatar

dr_venture

Employee

dr_venture
- Project Firefly
I am double-checking with some people to make sure there are no handy helper libs but essentially you will need to forward the headers from the action invoke to your secondary service call.const res = await fetch(apiEndpoint,{ headers:{ "authorization": params.__ow_headers["authorization"], "x-api-key": params.__ow_headers["x-api-key"], "w-gw-ims-org-id": params.__ow_headers["w-gw-ims-org-id"], "x-api-key": params.__ow_headers["x-api-key"] } })

Views

543

Likes

0

Replies

3
Re: Privacy Service API request from Firefly Sample App
Avatar

dr_venture

Employee

dr_venture
- Project Firefly
That would indicate not allowed. Would you mind posting the section of code where you make the fetch call to the privacy server? plz

Views

440

Likes

0

Replies

0
Re: Privacy Service API request from Firefly Sample App
Avatar

dr_venture

Employee

dr_venture
- Project Firefly
I don't see an error in the code you posted.In fact, I took the section of code you shared and ran it local and it worked fine. 500 could be coming from the privacy service. When you do the fetch on the privacy endpoint are you including all the needed headers, params, and auth needed to make that call? const requiredParams = [] const requiredHeaders = ['Authorization','x-api-key','w-gw-ims-org-id'] const errorMessage = checkMissingRequestInputs(params, requiredParams, requiredHeaders) if (error...

Views

450

Likes

0

Replies

0
Re: Privacy Service API request from Firefly Sample App
Avatar

dr_venture

Employee

dr_venture
- Project Firefly
Can you post a sample of the code in question? It is hard to tell the problem from that error message.

Views

612

Likes

0

Replies

1