Recent searches


No recent searches

Testing signedURL app locally fails with ZCLI



Posted Apr 28, 2023

I am trying to test a local version of my app in Zendesk with zcli apps:server, however my request with signed URL 

Request URL:
https://{myDomain}.zendesk.com/apps/installations/{installationsId}/iframe_redirect?location=nav_bar&product_name=support&origin=https%3A%2F%2F{myDomain}.zendesk.com&app_guid={appGuid} 

returns an error:

Invalid parameter: id must be an integer

I think this is due to the fact that the installationsId is actually not the installationsId but some other string ID. But I don't understand how to set which ID is used when Zendesk makes this request with a local app? It works fine with the uploaded apps.


0

6

6 comments

image avatar

Tipene Hughes

Zendesk Developer Advocacy

Hey IB kundservice,

Here's a few links to our documentation around testing your Zendesk apps locally, and specifically around the zcli.apps.config.json file and defining test settings:

Testing your Zendesk app locally

Defining test settings

ZCLI Apps repository docs

I hope this helps! Feel free to reach out with any questions.

Tipene

0


Hi, I'm having the same issue. The documentation provided doesn't give any advice on how to fix it. I have a zcli.apps.config.json file with an app_id in it, i'm still having this issue. 

 

Thanks very much

0


I am also having the same issue. Any luck fixing this @IB kundservice, @Simon Blum ?

0


Marios Ant our issue was we wrote a middleware to intercept the url, parsing & validating it, and then passing it on to our main app. We weren't passing the app_guid & token. passing on these parameters fixed the issue  

0


Gotcha. Thank you so much, Simon Blum!

0


Hello @Tipene Hughes I also have a problem with testing Zendesk SSR application on localhost with enabled `signedUrls` flag in application manifest file. The documentation doesn't contain nor article nor example of testing SSR application with enabled `SignedUrls` property on local

Testing comments
When `signedUrls` flag enabled, zcli apps:server stop working correctly.
Current:
Zendesk make request to:
GET: https://{domain}.zendesk.com/apps/installations/{guid}/iframe_redirect
And return: 400 status with message Invalid parameter: id must be an integer

Expected:
Zendesk should detect ?zcli=true query param and should make POST request with token to local zcli server

1


Please sign in to leave a comment.

Didn't find what you're looking for?

New post