-
Notifications
You must be signed in to change notification settings - Fork 323
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
Object parsing hangs #467
Comments
Hi Armando
Recursion problem? Just a wild guess, but I had an api I was consuming with Her which had an attribute called ‘attributes’ which caused havoc. I fixed it in an after_find, which I think happens before the object is returned.
Ed
…--
Sent from my phone: please forgive the brevity.
Ed Jones
On 27 Oct 2017, at 21:13, Armando Lew ***@***.***> wrote:
Hi, good afternoon.
After I tried to use the Her::Middleware::DefaultParseJSON middleware and getting a TypeError (no implicit conversion of Symbol into Integer), I tried to use a custom middleware that someone posted as a solution to the issue. Finally, after getting this middleware to show the response coming from an external API, I fired a query and the app freezes at the moment of creating the model objects from the json response. I don't receive any error on console nor a warning anywhere and I'm able to print the response from the env hash, so my guess is that Her is trying to convert this json response into model objects and there is where the app hangs. Can you please give me some pointers regarding the structure the env data should provide in order for Her to be able to parse accordingly? Thank you. Regards. Armando.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Hi Ed, thanks for the quick reply. No, there's no 'attributes' attribute. What I can see is that Her parses a batch of json strings but then crashes. I'm not sure if this issue might be related to an absent attribute or a memory issue. |
Hmm. Hard to know. Can you share your source json in a gist?
…--
Sent from my phone: please forgive the brevity.
Ed Jones
On 27 Oct 2017, at 21:42, Armando Lew ***@***.***> wrote:
Hi Ed, thanks for the quick reply. No, there's no 'attributes' attribute. What I can see is that Her parses a batch of json strings but then crashes. I'm not sure if this issue might be related to an absent attribute or a memory issue.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, good afternoon.
After I tried to use the Her::Middleware::DefaultParseJSON middleware and getting a TypeError (no implicit conversion of Symbol into Integer), I tried to use a custom middleware that someone posted as a solution to the issue. Finally, after getting this middleware to show the response coming from an external API, I fired a query and the app freezes at the moment of creating the model objects from the json response. I don't receive any error on console nor a warning anywhere and I'm able to print the response from the env hash, so my guess is that Her is trying to convert this json response into model objects and there is where the app hangs. Can you please give me some pointers regarding the structure the env data should provide in order for Her to be able to parse accordingly? Thank you. Regards. Armando.
The text was updated successfully, but these errors were encountered: