Comments (7)
I ran into the same issue. Is this related to protocolbuffers/protobuf-javascript#25?
Would it be possible to replace the grpc library with another one, like this pure JS implementation:
https://www.npmjs.com/package/@grpc/grpc-js (in a reasonable amount of time)?
I haven't tested any other serverless functions provider. Does anyone have experiences with other providers?
from js-textile.
I made a little more research and it seems like Google Closure Compiler generates the eval
s when building the google-protobuf
dependency. I'm fiddling around with it right now and see, if there is a way to avoid them, but it's not the most pleasant experience.
I've also been asking on the CF Workers Discord server whether there is any way to upload such functions that involve unsafe eval, but I got an answer that it's not possible.
from js-textile.
Thanks for digging into this @Tarnadas. I did some research as well, and the closest thing I've come up with is actually just trying to use sed, awk, or similar to remove those lines from the built code. Not ideal, but possibly doable?
from js-textile.
I managed to fix the issue with some nasty Webpack transformations, which basically removed all eval and Function usages, but I stumbled across the next issue using Websockets on CF Workers. I donβt think this is easy to solve either, which is why I gave up.
Do you know if it is possible to use ThreadDB in another serverless environment?
from js-textile.
Unfortunately, we haven't tested this elsewhere. Maybe @andrewxhill has some thoughts, but I think this usage just hasn't really been on our radar?
from js-textile.
Right, I believe we did some tests with the pure js grpc library in the past. I'm trying to recall what the blockers were, it may have been around the unary type requests?
from js-textile.
The issue was with the bidi calls. Unfortunately, I think this is still an issue. @Tarnadas, if you are interested, there is the possibility that you might be able to do this via some other means... perhaps if you only need a limited set of APIs, the pure gRPC route is possible?
from js-textile.
Related Issues (20)
- [bug]: Don't require changes to unrelated tables before pulling from a given table
- Dependabot can't resolve your JavaScript dependency files
- Dependabot can't resolve your JavaScript dependency files
- js-examples: slate-react-system has been delisted from npm HOT 2
- Dependabot can't resolve your JavaScript dependency files
- No docs for querying
- Public reads HOT 1
- Read vs write permisions HOT 2
- Dependabot can't resolve your JavaScript dependency files
- Dependabot can't resolve your JavaScript dependency files
- Client: Allow limit and offset on empty queries
- Client.getTokenChallenge triggers UncaughtException HOT 3
- buckets pushPath intermittent error 'parsing event in validate write' HOT 1
- Add count method HOT 1
- Update json-schema to 4.0
- Textile IPNS Resolution
- Error calling document.save() more than once in ^0.2.1 HOT 3
- Rust client for textileio
- getting error in "Development" mode when calling "buckets.getToken"
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from js-textile.