# "Unknown error saving post" when starting new topic with inline code

**URL:** <https://meta.discourse.org/t/unknown-error-saving-post-when-starting-new-topic-with-inline-code/27861>\
**Category:** Product Support\
**Created:** [April 23, 2015, 3:11pm UTC](https://meta.discourse.org/t/unknown-error-saving-post-when-starting-new-topic-with-inline-code/27861 "2015-04-23T15:11:20Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![dani\_m](https://avatars.discourse-cdn.com/v4/letter/d/8edcca/32.png) [@dani\_m](https://meta.discourse.org/u/dani_m)\
**Post date:** [April 27, 2015, 10:17am UTC](https://meta.discourse.org/t/unknown-error-saving-post-when-starting-new-topic-with-inline-code/27861/7 "2015-04-27T10:17:16Z")

</div>

Hi All - we thought it would be easier if I responded directly.

I’ve just [posted the string in question on try.discourse.org](http://try.discourse.org/t/testing-adding-code/351) and it has posted with no problems.

Doing this on our discourse, when writing a topic with the following message:

> Some characters here then nothing

it posts to [Sign in to your account](http://discourse.softwire.com/draft.json) successfully

However, when writing a topic with the following message:

> Some characters here and then the code

> set -e  
> git log --all -M -C --name-only --format=‘format:’ "@" | sort | grep -v '^’ | uniq -c | sort -n | awk ‘BEGIN {print “count,file”} {print $1 “,” $2}’ \> churn.csv

It posts to [Sign in to your account](http://discourse.softwire.com/draft.json) but errors with message (failed) net::ERR\_CONNECTION\_RESET

If I then try and post this message, a lightbox appears with "Unknown error saving pistm try again, Error:0 error. Looking in the console, the post to [Sign in to your account](http://discourse.softwire.com/posts) has failed again with net::ERR\_CONNECTION\_RESET

Hope that helps!

---

_[View the full topic](https://meta.discourse.org/t/unknown-error-saving-post-when-starting-new-topic-with-inline-code/27861)._
