Code Monkey home page Code Monkey logo

Comments (6)

sonicaghi avatar sonicaghi commented on May 22, 2024

thanks for reporting.

from insomnia-mockbin.

ahmadnassri avatar ahmadnassri commented on May 22, 2024

@junaidk seems like an encoding problem.

can you please paste the body you're using here?

from insomnia-mockbin.

junaidk avatar junaidk commented on May 22, 2024

this is the message body { \"ssid\": \"value\", \"message\" : \"msg\", \"time\" : \"9999\" }^[[D^[[D . It has left arraow key chars at the end.
It starts show error page after receiving this message. And there is no way to go back to Bin.

from insomnia-mockbin.

qwo avatar qwo commented on May 22, 2024

related to encoding by xmlbuilder in https://github.com/Mashape/mockbin/blob/master/src/middleware/negotiate-content.js#L49

My use case was emojis, althought it was valid json it would throw on this line. According to the module author it can be allowed by adding the {allowSurrogateChars: true} flag to the call. In my case i was handling the instagram api which is sprinkled with emojis and other special characters.

I tested with the string above and it now doesn't throw invalid and renders fine.

oozcitak/xmlbuilder-js#98
oozcitak/xmlbuilder-js#29

Pull request in #40

from insomnia-mockbin.

ahmadnassri avatar ahmadnassri commented on May 22, 2024

thanks @stanzheng

from insomnia-mockbin.

qwo avatar qwo commented on May 22, 2024

np. great small tool for my prototyping.

this bin view use to crash on render but after applying the fix it works just fine.

http://mockbin-stanzheng.herokuapp.com/bin/02617471-83e0-4243-b5d7-43709197e3ad/log#entry-99

from insomnia-mockbin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.