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

MailBox response has data encoded to base64 #9

Open
madan01 opened this issue May 16, 2016 · 4 comments
Open

MailBox response has data encoded to base64 #9

madan01 opened this issue May 16, 2016 · 4 comments

Comments

@madan01
Copy link

madan01 commented May 16, 2016

When querying for response from messagebox, the result has data encoded in base64

Example:
http://localhost:8080/revolver/v1/response/58e65822-977f-4f24-b20a-5ffd939838d5

ResultBody:
"body": "eyJjdXN0b21lciI6eyJuYW1lIjoidGVzdF91c2VyXzIiLCJwaG9uZSI6OTk5OTk5OTksImVtYWlsIjoidGVzdF8yQHRlc3QuY29tIiwiY3VzdG9tZXJfdHlwZSI6InJlcGVhdCJ9fQ==",
"statusCode": 200

@phaneesh
Copy link
Owner

phaneesh commented May 16, 2016

@madan01 What is the response from downstream service ? Is it in JSON or is it encoding it to base64 ?

@madan01
Copy link
Author

madan01 commented May 16, 2016

@phaneesh Response is JSON from downstream service. It is a simple nodejs server returning json.

@phaneesh
Copy link
Owner

@madan01 Can you create a gist for your node.js service code ? I cannot find any reference of base64 encoding in revolver and I am able to fetch the original response.

@madan01
Copy link
Author

madan01 commented May 16, 2016

@phaneesh, It is available at https://github.com/madan01/TestNodeServer/blob/master/node_apps/app.js.
Also I have dockerized the test node server.

phaneesh pushed a commit that referenced this issue Mar 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants