Giter VIP home page Giter VIP logo

Comments (6)

jasl avatar jasl commented on May 30, 2024

I'm not sure mruby-httprequest support mruby 2.1, because its last update is in 3 years ago...

Could you try to downgrade script_core to 0.0.6 to see what happend? maybe it works

from script_core.

jasl avatar jasl commented on May 30, 2024

Ok I did some research, don't know why mruby-io can't compile, I'm not experienced on C, called friend for help

from script_core.

jasl avatar jasl commented on May 30, 2024

image

OK, finally let it work, because LLVM-macOS should include stdio.h by default, but GCC not, so adding #include <stdio.h> to mruby/mrbgems/mruby-io/src/file.c will work.

I'll send a PR to mruby, don't know this is the right way.

You need put these in to your gembox:

conf.gem core: "mruby-sprintf"
conf.gem mgem: "mruby-httprequest"

and you have to give a long timeout throttle because 1 second is too short for network IO, and keep in mind that mruby is running syncronizingly which means it will blocking your program until return or timeout.

Thank you give this issue that let me know IO works in the sandbox.

from script_core.

jasl avatar jasl commented on May 30, 2024

Unforunatly ESS opened MRB_DISABLE_STDIO flag made mruby-io compiling failed.

Although we can give an option to remove that, but that would lead the sandbox vulnerble.

what do you think?

from script_core.

tdegrunt avatar tdegrunt commented on May 30, 2024

Was just about to try this out. It would be nice to have this option, but indeed vulnerable sandboxes make no sense. Let's not. I'll think of another way! Shall I close this ticket?

Really enjoy using this gem!

from script_core.

jasl avatar jasl commented on May 30, 2024

Was just about to try this out. It would be nice to have this option, but indeed vulnerable sandboxes make no sense. Let's not. I'll think of another way! Shall I close this ticket?

Really enjoy using this gem!

Thank you for reply! I close the issue

from script_core.

Related Issues (2)

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.