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

Error code 422 when call by StoryblokStoryClient _storyClient.load() #12

Open
dungdx opened this issue Mar 31, 2023 · 0 comments
Open

Comments

@dungdx
Copy link

dungdx commented Mar 31, 2023

Hi everyone,

The function LoadStories() in StoryblokStoryClient class aggregrates URL's parameters that are different with parameters which we are using to call Content Delivery APIs of StoryBlok.

For example:
StoryblokStoryClient fixed URL with a param "&cb={DateTime.UtcNow:yyyyMMddHHmmss}", while our URL doesn't contain this param. So in our project, if use _storyClient.Story().WithSlug("home").Load(), then result is return 422 code Error.

This is my URL as https://api.storyblok.com/v2/cdn/stories/home?cv=1680237492&token=1hfg5CmnrelP8fJT5llmWatt&version=published

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