Skip to content

[FS] Cannot decode json message #202

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

Closed
CheapHasz opened this issue Sep 14, 2017 · 2 comments
Closed

[FS] Cannot decode json message #202

CheapHasz opened this issue Sep 14, 2017 · 2 comments
Labels

Comments

@CheapHasz
Copy link

I have an issue which seems similar to #170, (the error message definitely is) but isn't fixed by #181.

After consuming a long queue of messages, one fails. Always the same at the first run, and then many after each time I run the consumers again

Error :

[LogicException]                                                                                                                                         
  Cannot decode json message '                                                          |{"body":"{\"path\":\"\\\/p\\\/r\\\/pr_swoppad_6_4910_black_1.jpg  
  \",\"filters\":null,\"force\":false}","properties":{"enqueue.topic_name":"liip_imagine_resolve_cache"},"headers":{"content_type":"application\/json","m  
  essage_id":"e94c56dc-8d08-4ba0-8030-6978ca629d97","timestamp":1505379147,"reply_to":null,"correlation_id":""}}'

The part of the file before failure :

|{"body":"{\"path\":\"\\\/p\\\/r\\\/pr_swoppad_6_4910_red_1.jpg\",\"filters\":null,\"force\":false}","properties":{"enqueue.topic_name":"liip_imagine_resolve_cache"},"headers":{"content_type":"application\/json","message_id":"46fdc345-5d0c-426e-95ac-227c7e657839","timestamp":1505379216,"reply_to":null,"correlation_id":""}}                                                          |{"body":"{\"path\":\"\\\/p\\\/r\\\/pr_swoppad_6_4910_black_1.jpg\",\"filters\":null,\"force\":false}","properties":{"enqueue.topic_name":"liip_imagine_resolve_cache"},"headers":{"content_type":"application\/json","message_id":"c4d60e39-3a8c-42df-b536-c8b7c13e006d","timestamp":1505379216,"reply_to":null,"correlation_id":""}}                                                          |{"body":"{\"path\":\"\\\/p\\\/r\\\/pr_swoppad_6_4910_green_1.jpg\",\"filters\":null,\"force\":false}","properties":{"enqueue.topic_name":"liip_imagine_resolve_cache"},"headers":{"content_type":"application\/json","message_id":"3a6aa176-c879-4435-9626-c48e0643defa","timestamp":1505379216,"reply_to":null,"correlation_id":""}}

I really can't see what differs in the failing line

@makasim
Copy link
Member

makasim commented Sep 20, 2017

The bug was introduced in #181 and unfortunately, it corrupts the queue files so they are no longer useable. #203 fixes the actual bugs and also adds some guards assertions for the message structure so we can spot bad behavior much earlier.

It is going to be merged to 0.8 branch.

@CheapHasz
Copy link
Author

Ok great, thanks

@makasim makasim closed this as completed Sep 20, 2017
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