Code Monkey home page Code Monkey logo

Comments (7)

brandensilva avatar brandensilva commented on May 8, 2024 1

Just an update on this. I've removed the double quotes from the schema attribute and still see the same issue.

export const will only work if it is a mjs file. I've since converted it to a cjs file so you'd need to remove the export for that.

from permify.

brandensilva avatar brandensilva commented on May 8, 2024 1

I wasn't able to figure out why permify-node has issues around the tenantId getting passed into schema write. My guess is more research and fixes will need to be applied to permify-node to move past these issues. It has possibly something to do with nice-grpc or grpc js and whatever "invalid argument" gets passed into these packages.

I don't have time to dig that deep so hopefully you can find this in your code.

For now to work around this we've since moved to posting directly to WriteDB over http POST to deploy the schema.perm file script. My hope is that the permify-node permission check still works with GRPC so we can rely on the bit nicer dx around that rather than http/rest but we haven't gotten that far yet to test.

from permify.

brandensilva avatar brandensilva commented on May 8, 2024 1

@EgeAytin I have confirmed that this fixed the issue, thanks!

from permify.

brandensilva avatar brandensilva commented on May 8, 2024

This is also with the brew method of running Permify. I ran into issues with the docker method which I'll work with you on separately.

from permify.

brandensilva avatar brandensilva commented on May 8, 2024

Some additional details:

computer: Macbook Pro 2021 M1 Max (Apple Silicon)
OS: Ventura 13.1 (22C65)
Postgres version: 15.1 (via docker-compose)

Node version: 16.18.0
permify-node version: 0.3.1
permify version via brew: 0.3.0
communication method: GRPC. Curl seems to return a schema_version response so I believe that is working.

from permify.

brandensilva avatar brandensilva commented on May 8, 2024

I did try downgrading permify-node to 0.2.0 but still had no success with that.

from permify.

EgeAytin avatar EgeAytin commented on May 8, 2024

Hi @brandensilva we solved the issue!! Could you install the latest version of permify-node (0.3.2) and test it. We can close this issue afterwards.

from permify.

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.