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

fix encrypt response parsing #435

Merged
merged 1 commit into from
Apr 8, 2020

Conversation

ruddell
Copy link
Member

@ruddell ruddell commented Apr 8, 2020

Fix #434 by setting responseType to text, otherwise it fails when trying to parse the simple string as JSON.

Typescript complains when the response is typed and responseType is text, so I removed <string> from the service methods. Related StackOverflow: https://stackoverflow.com/q/49771603/3737815

Also added /config to the webpack paths so the request can be tested in the dev profile.

Related links:
https://angular.io/guide/http#requesting-non-json-data

  • Please make sure the below checklist is followed for Pull Requests.

  • Travis tests are green

  • Tests are added where necessary

  • Documentation is added/updated where necessary

  • Coding Rules & Commit Guidelines as per our CONTRIBUTING.md document are followed

@vishal423 vishal423 merged commit d9edb43 into jhipster:master Apr 8, 2020
@ruddell ruddell deleted the fix-encrypt-response-parsing branch April 8, 2020 16:49
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

Successfully merging this pull request may close these issues.

Encrypt/decrypt doesn't work on Encryption page
2 participants