Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failing to retrieve PDF/Word docs via Dapr Service Invoke #606

Closed
Rajesh91-ch opened this issue Jul 6, 2024 · 2 comments
Closed

Failing to retrieve PDF/Word docs via Dapr Service Invoke #606

Rajesh91-ch opened this issue Jul 6, 2024 · 2 comments
Labels

Comments

@Rajesh91-ch
Copy link

In my setup, a Node.js app(Service1) is deployed in an Azure container app with Dapr enabled. Another Node.js app(Service2) consumes it using Dapr Service Invoke methods.

There is a api in service1 it sends the PDF/Word content, Service2 consumes the api and sends the response to client(browser).
When service2 receives the response for a pdf document the data content is in 'Raw PDF format'('%PDF-1.4\n' +
'1 0 obj\n' +
'<<\n')

In http call(Without Dapr SDK) by setting the responsetype to 'stream' or 'arraybuffer' retrieves the content in expected format.
However, I can see no such option via Dapr Service Invoke call.
Is there a way to handle these kind of scenarios, Please suggest.
Below is my Dapr call:
Dapr service invoke: const response = await daprClient.invoker.invoke('https://sampleurl.com/reports/${req.params.reportId}/status`, HttpMethod.GET);

@dapr-bot
Copy link
Collaborator

dapr-bot commented Sep 4, 2024

This issue has been automatically marked as stale because it has not had activity in the last 60 days. It will be closed in the next 7 days unless it is tagged (pinned, good first issue, help wanted or triaged/resolved) or other activity occurs. Thank you for your contributions.

@dapr-bot dapr-bot added the stale label Sep 4, 2024
@dapr-bot
Copy link
Collaborator

This issue has been automatically closed because it has not had activity in the last 67 days. If this issue is still valid, please ping a maintainer and ask them to label it as pinned, good first issue, help wanted or triaged/resolved. Thank you for your contributions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants