https://github.com/lldap/lldap logo
e
What am I doing wrong with this query? Initially I tried to fetch displayName, but that failed because of the deprecation.
Copy code
json
            query {
              users {
                id
              }
            }
What errors are you getting?
But this is the most important thing
Copy code
gql.transport.exceptions.TransportQueryError: Error while fetching schema: {'message': 'Unknown field "isDeprecated" on type "__InputValue"', 'locations': [{'line': 66, 'column': 3}]}
But maybe I could just fetch_schema_from_transport=True now, and then not have that code. Maybe.
I mostly just wanted a sanity check 😄
n
It sounds like your client doesn't support the deprecation attribute. There's not much I can do about that :/
e
@nitnelave it's the other way around it seems. https://github.com/graphql-rust/juniper/issues/1347 juniper doesn't support the deprecation, and python gql uses it by default now. I fixed it by deoing this https://git.fricloud.dk/fricloud/server-configs/commit/490a6f1991aa6c5e2dc3e3550e9da80629e37488
So hopefully Juniper gets support, and then lldap will bump the deps on the next release that's made 😄
n
I'm confused: if it's server side, why is the frontend working at all?
Or is your client sending a deprecated attribute?
e
It's this https://git.fricloud.dk/fricloud/server-configs/src/commit/131311f0b5030de34ecc065222a7c4c7c8e0a648/machines/gerd/services/lldap/module/bootstrap/main.py#L89 , it's my custom bootstrap thingy made in Python 🙂 But because I updated gql, I then got this update as well https://github.com/graphql-python/gql/pull/553 , which is not supported by Juniper (which lldap uses). So the "fix" for me was this https://git.fricloud.dk/fricloud/server-configs/commit/490a6f1991aa6c5e2dc3e3550e9da80629e37488
So it's just because my graphql client was "too new", and requested shit that isn't widely supported yet. Which is stupid of them to do such a thing. 😄
Does that somewhat clear it up?
(it's more of an informal update on what it was, not that I expect you to change anything, as it's not your problem as such 🙂 )
n
Thanks, that clears it up. Note that https://github.com/graphql-python/gql/pull/553 has a way to disable that new behavior in your python code, if you want
e
Already done in this commit https://git.fricloud.dk/fricloud/server-configs/commit/490a6f1991aa6c5e2dc3e3550e9da80629e37488 , and everything works again 😄 It would be nicer to make the bootstrap/provisioning using Rust however. That would keep it in line with the project. I don't really gain anything by using Python, except it was faster to write.. 🙃