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

Lens V2 Alpha 2 / 3 issues with explore.publications INTERNAL_SERVER_ERROR #539

Closed
mvanhalen opened this issue Sep 23, 2023 · 1 comment
Closed

Comments

@mvanhalen
Copy link

mvanhalen commented Sep 23, 2023

Describe the bug
A Server error occurs when parsing or getting the result: INTERNAL_SERVER_ERROR

Abstract type \"AccessCondition\" must resolve to an Object type at runtime for field \"PublicationMetadataV3LitEncryption.accessCondition\". Either the \"AccessCondition\" type should provide a \"resolveType\" function or each possible type should provide an \"isTypeOf\" function.

Or when adding metadata:{mainContentFocus:[PublicationMetadataMainFocusType.Image]} in the query: INTERNAL_SERVER_ERROR

Expected a value of type \"MimeType\" but received: \"image/png\

To Reproduce
Call function like:

const mostPopular = await window.lensClient.explore.publications({where:{ publicationTypes:[ExplorePublicationType.Post]},orderBy:ExplorePublicationsOrderByType.LensCurated,limit:LimitType.Ten});

or

const mostPopular = await window.lensClient.explore.publications({where:{ publicationTypes:[ExplorePublicationType.Post],metadata:{mainContentFocus:[PublicationMetadataMainFocusType.Image]}},orderBy:ExplorePublicationsOrderByType.LensCurated,limit:LimitType.Ten});

Also happens with ExplorePublicationsOrderByType.Latest

Expected behavior
No errors

Version of the packages you are using
Happens with client version Lens V2 alpha 2 and 3

Additional context
Seems like some metadata or fragment error getting or expecting the wrong type.

@mvanhalen
Copy link
Author

Solved in alpha 5.

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

No branches or pull requests

1 participant