Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getProfilles query fails #3

Open
Ataxia123 opened this issue Jul 31, 2022 · 2 comments · May be fixed by #8
Open

getProfilles query fails #3

Ataxia123 opened this issue Jul 31, 2022 · 2 comments · May be fixed by #8

Comments

@Ataxia123
Copy link

I've been trying to implement the lens.js in a scaffold-eth framework.

const getProfiles = () => {
Lens.ExploreProfiles("MOST_FOLLOWERS", ["STATS"], 10)
.then(res => {
console.log(res);
})
.catch(err => {
console.log("error", err);
});
};

throws the following:

message: "[GraphQL] Variable "$request" cannot be non-input type "ExploreProfileResult!".\n[GraphQL] Variable "$request" of type "ExploreProfileResult!" used in position expecting type "ExploreProfilesRequest!"."
name: "CombinedError"
networkError: undefined

The getPublications function returns successfully that's why I'm thrown off by this error.

@suhailkakar
Copy link
Owner

suhailkakar commented Jul 31, 2022

Hey @Ataxia123 👋

I have checked this API on GraphQL playground and due to some issue it was not working when you add a dynamic variables. I have temporary fixed this issue here fix: temp fixed the explore profile API, but I will take a close look at it tomorrow :)

You can install version 0.1.5 and it should be working fine.

Thank you!

@butovsky butovsky linked a pull request Sep 5, 2022 that will close this issue
@butovsky
Copy link

butovsky commented Sep 5, 2022

@suhailkakar hi :) my PR #8 may do the trick, please review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants