Skip to content
This repository has been archived by the owner on Feb 22, 2020. It is now read-only.

Exception messages appear to be truncated #16

Open
jsvd opened this issue Oct 22, 2018 · 1 comment
Open

Exception messages appear to be truncated #16

jsvd opened this issue Oct 22, 2018 · 1 comment
Labels
bug Something isn't working

Comments

@jsvd
Copy link

jsvd commented Oct 22, 2018

Currently error like having the wrong key produces com.swiftype.appsearch.ClientException, but the message is somewhat incomplete:

exception.getMessage
=> "Error: 401"

This also happens during indexing, if a bulk request exceeds 100 elements, the exception message will only say "Error 400", while if we browse through the engine's api log we can see the full error.

Is this shorter error message by design?

@JasonStoltz
Copy link
Contributor

Hey @jsvd, this seems like a bug. We should be passing through the full error message.

@JasonStoltz JasonStoltz added the bug Something isn't working label Oct 22, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants