Git Product home page Git Product logo

Comments (3)

teidesu avatar teidesu commented on June 15, 2024 1

Error: Cannot perform I/O on behalf of a different request. I/O objects (such as streams, request/response bodies, and others) created in the context of one request handler cannot be accessed from a different request's handler. This is a limitation of Cloudflare Workers which allows us to improve overall performance. (I/O type: Native)

yeah i don't think it is even viable to run mtcute as-is in workers.
overhead from starting a client on every single request is a bit too much:
image

there is an option to use durable objects (which i will probably eventually get to implementing), but it's not available on free plans so it's probably not much of a priority right now.

i'll probably eventually implement something like a "remote", where you can connect to a remote mtcute instance in serverless environment, but that requires making better networking abstractions for stuff to work across runtimes.
i need to do that either way, but rn i want to focus on improving highlevel api coverage and dispatcher dx for a bit

from mtcute.

teidesu avatar teidesu commented on June 15, 2024

mtcute does not use that library under the hood, so that code wont work as is either way. i will research cloudflare workers

from mtcute.

teidesu avatar teidesu commented on June 15, 2024

oops accident

from mtcute.

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.