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

400 Bad Request #247

Open
GrayX0F opened this issue Apr 22, 2022 · 0 comments
Open

400 Bad Request #247

GrayX0F opened this issue Apr 22, 2022 · 0 comments

Comments

@GrayX0F
Copy link

GrayX0F commented Apr 22, 2022

From what I can gather after following your demo to the letter (outside of api keys, index name, and content type), I am not getting the content stage which it looks like you get in your code on hookbin. Would you have any insight as to access that the content stage data? Or a possible workaround that would allow me to pass the data into algolia? Any help you can provide would be greatly appreciated.

Cannot destructure property 'id' of 'PUBLISHED' as it is undefined.

here is the data passed back from ngrok when I make a change to a post :

{
"operation": "publish",
"data": {
"__typename": "Post",
"author": [
{
"__typename": "Author",
"id": "ckzeln59scorc0b77iv59abik"
}
],
"content": "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum. ",
"createdAt": "2022-02-08T20:56:46.972835+00:00",
"createdBy": {
"__typename": "User",
"id": "ckzbyct9g2uxw01z6f25416ng"
},
"date": "2022-02-08T20:54:00+00:00",
"description": "This is a testing post used for my purposes and searching purposes!!",
"id": "ckzelstqwcusg0a728ofd8123",
"publishedAt": "2022-04-22T17:06:02.866182+00:00",
"publishedBy": {
"__typename": "User",
"id": "ckzbyct9g2uxw01z6f25416ng"
},
"scheduledIn": [],
"slug": "test-content-post",
"stage": "PUBLISHED",
"tags": [
"educational",
"Educational"
],
"title": "Educational Development Test Post 1",
"updatedAt": "2022-04-22T16:33:51.280676+00:00",
"updatedBy": {
"__typename": "User",
"id": "ckzbyct9g2uxw01z6f25416ng"
}
}
}

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