Hi there,
After I upgraded casablanca to 1.3.1 on my linux( I do not know which version I used before, something between 1.1.0 and 1.2.0), I get an error, when I sending JSON data ({"Name":"Test"}) from Chrome. I only get
```
Error: a std::exception was thrown out of http_listener handle: Malformed token near line 2, column 1
```
Any advice?
Kind regards Henrik
Comments: Now, when I reply to a request by a chromium-browser, it throws after answering the response: and folowing backtrace: ``` (gdb) bt #0 0x00007ffff6561f77 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56 #1 0x00007ffff65655e8 in __GI_abort () at abort.c:90 #2 0x00007ffff6e6d6e5 in __gnu_cxx::__verbose_terminate_handler() () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6 #3 0x00007ffff6e6b856 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6 #4 0x00007ffff6e6b883 in std::terminate() () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6 #5 0x00007ffff6e6baae in __cxa_throw () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6 #6 0x00007ffff6ebd157 in std::__throw_out_of_range(char const*) () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6 #7 0x00007ffff721e022 in web::http::experimental::listener::details::connection::handle_http_line(boost::system::error_code const&) () from /home/henrik/dev/cpp/webreplyer/databaseengine/casablanca/Binaries/Release64/libcasablanca.so #8 0x00007ffff722c6b5 in boost::asio::detail::read_until_expr_op<boost::asio::basic_stream_socket<boost::asio::ip::tcp, boost::asio::stream_socket_service<boost::asio::ip::tcp> >, std::allocator<char>, boost::basic_regex<char, boost::regex_traits<char, boost::cpp_regex_traits<char> > >, boost::_bi::bind_t<void, boost::_mfi::mf1<void, web::http::experimental::listener::details::connection, boost::system::error_code const&>, boost::_bi::list2<boost::_bi::value<web::http::experimental::listener::details::connection*>, boost::arg<1> (*)()> > >::operator()(b---Type <return> to continue, or q <return> to quit--- oost::system::error_code const&, unsigned long, int) () from /home/henrik/dev/cpp/webreplyer/databaseengine/casablanca/Binaries/Release64/libcasablanca.so #9 0x00007ffff722d2ab in boost::asio::detail::reactive_socket_recv_op<boost::asio::mutable_buffers_1, boost::asio::detail::read_until_expr_op<boost::asio::basic_stream_socket<boost::asio::ip::tcp, boost::asio::stream_socket_service<boost::asio::ip::tcp> >, std::allocator<char>, boost::basic_regex<char, boost::regex_traits<char, boost::cpp_regex_traits<char> > >, boost::_bi::bind_t<void, boost::_mfi::mf1<void, web::http::experimental::listener::details::connection, boost::system::error_code const&>, boost::_bi::list2<boost::_bi::value<web::http::experimental::listener::details::connection*>, boost::arg<1> (*)()> > > >::do_complete(boost::asio::detail::task_io_service*, boost::asio::detail::task_io_service_operation*, boost::system::error_code const&, unsigned long) () from /home/henrik/dev/cpp/webreplyer/databaseengine/casablanca/Binaries/Release64/libcasablanca.so #10 0x00007ffff71c837f in boost::asio::detail::task_io_service::run(boost::system::error_code&) () from /home/henrik/dev/cpp/webreplyer/databaseengine/casablanca/Binaries/Release64/libcasablanca.so #11 0x00007ffff71c85c6 in crossplat::threadpool::thread_start(void*) () from /home/henrik/dev/cpp/webreplyer/databaseengine/casablanca/Binaries/Release64/libcasablanca.so #12 0x00007ffff5b62f6e in start_thread (arg=0x7fffde5fb700) ---Type <return> to continue, or q <return> to quit--- ```
After I upgraded casablanca to 1.3.1 on my linux( I do not know which version I used before, something between 1.1.0 and 1.2.0), I get an error, when I sending JSON data ({"Name":"Test"}) from Chrome. I only get
```
Error: a std::exception was thrown out of http_listener handle: Malformed token near line 2, column 1
```
Any advice?
Kind regards Henrik
Comments: Now, when I reply to a request by a chromium-browser, it throws after answering the response: and folowing backtrace: ``` (gdb) bt #0 0x00007ffff6561f77 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56 #1 0x00007ffff65655e8 in __GI_abort () at abort.c:90 #2 0x00007ffff6e6d6e5 in __gnu_cxx::__verbose_terminate_handler() () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6 #3 0x00007ffff6e6b856 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6 #4 0x00007ffff6e6b883 in std::terminate() () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6 #5 0x00007ffff6e6baae in __cxa_throw () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6 #6 0x00007ffff6ebd157 in std::__throw_out_of_range(char const*) () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6 #7 0x00007ffff721e022 in web::http::experimental::listener::details::connection::handle_http_line(boost::system::error_code const&) () from /home/henrik/dev/cpp/webreplyer/databaseengine/casablanca/Binaries/Release64/libcasablanca.so #8 0x00007ffff722c6b5 in boost::asio::detail::read_until_expr_op<boost::asio::basic_stream_socket<boost::asio::ip::tcp, boost::asio::stream_socket_service<boost::asio::ip::tcp> >, std::allocator<char>, boost::basic_regex<char, boost::regex_traits<char, boost::cpp_regex_traits<char> > >, boost::_bi::bind_t<void, boost::_mfi::mf1<void, web::http::experimental::listener::details::connection, boost::system::error_code const&>, boost::_bi::list2<boost::_bi::value<web::http::experimental::listener::details::connection*>, boost::arg<1> (*)()> > >::operator()(b---Type <return> to continue, or q <return> to quit--- oost::system::error_code const&, unsigned long, int) () from /home/henrik/dev/cpp/webreplyer/databaseengine/casablanca/Binaries/Release64/libcasablanca.so #9 0x00007ffff722d2ab in boost::asio::detail::reactive_socket_recv_op<boost::asio::mutable_buffers_1, boost::asio::detail::read_until_expr_op<boost::asio::basic_stream_socket<boost::asio::ip::tcp, boost::asio::stream_socket_service<boost::asio::ip::tcp> >, std::allocator<char>, boost::basic_regex<char, boost::regex_traits<char, boost::cpp_regex_traits<char> > >, boost::_bi::bind_t<void, boost::_mfi::mf1<void, web::http::experimental::listener::details::connection, boost::system::error_code const&>, boost::_bi::list2<boost::_bi::value<web::http::experimental::listener::details::connection*>, boost::arg<1> (*)()> > > >::do_complete(boost::asio::detail::task_io_service*, boost::asio::detail::task_io_service_operation*, boost::system::error_code const&, unsigned long) () from /home/henrik/dev/cpp/webreplyer/databaseengine/casablanca/Binaries/Release64/libcasablanca.so #10 0x00007ffff71c837f in boost::asio::detail::task_io_service::run(boost::system::error_code&) () from /home/henrik/dev/cpp/webreplyer/databaseengine/casablanca/Binaries/Release64/libcasablanca.so #11 0x00007ffff71c85c6 in crossplat::threadpool::thread_start(void*) () from /home/henrik/dev/cpp/webreplyer/databaseengine/casablanca/Binaries/Release64/libcasablanca.so #12 0x00007ffff5b62f6e in start_thread (arg=0x7fffde5fb700) ---Type <return> to continue, or q <return> to quit--- ```