Closed pokal4u closed 10 years ago
As a see, you trying send a json. So you have json inside of json without escaping inner one. After unescaping string, "(quotes) breaks json received from push-stream-module so it can't parse it.
Hi Thanks for reply
Please give me one simple example
Thanks Pokal4u
If you are pushing json and not text, this is what works for me:
push_stream_message_template "{\"id\":~id~,\"channel\":\"~channel~\",\"text\":~text~}";
(simply remove quotes)
Hi,
When we send or receive messages getting Invalid Json error
Please find attached file
My confg file:
pid logs/nginx.pid; error_log logs/nginx-main_error.log debug; master_process off; daemon off; worker_rlimit_core 500M; working_directory /tmp;
worker_processes 2; worker_rlimit_nofile 50000; events { worker_connections 1024; use epoll; }
http { access_log logs/nginx-http_access.log; tcp_nopush on; tcp_nodelay on; keepalive_timeout 30; send_timeout 10; client_body_timeout 10; client_header_timeout 60; sendfile on; client_header_buffer_size 1k; large_client_header_buffers 8 512k;#2 4k
ignore_invalid_headers on; push_stream_shared_memory_size 500m; push_stream_max_channel_id_length 200;
max messages to store in memory
}
Please help me
Thanks Pokal4u