Robert B
9/6/24, 1:21:04 PM EDT
@Christopher, should the new Firebrand Product branch also attach to the Distribution Channels - Amazon?
Christopher B
9/30/24, 11:26:08 AM EDT
Hi Ian, I coded up the API you provided. I am getting 500 errors. Can you add error handling? Here is what I tried to send in JSON: {"inputdata":"Pizza Recipies","metadata":{"keywords":["Italion"],"primarymedia":"AZI-yKfVX_CelzxqHwdr","searchcategory":null,"entity_date":Sat Sep 28 00:00:00 CST 2024,"name":"Grandmas Recipes","longcaption":"Fun Style for kids"}}
Ian M
9/30/24, 11:30:15 AM EDT
yeah but at a glance that's invalid json - no quotes around the data
date
date
Ian M
9/30/24, 11:31:15 AM EDT
This chat doesn't send my comment back to me, very distracting. I have to refresh the page to see what I just wrote
Ian M
9/30/24, 11:35:38 AM EDT
try formatting it like this: {
"inputdata": {
"directions": "Pizza Recipes",
"metadata": {
"keywords": ["Italian"],
"primarymedia": "AZI-yKfVX_CelzxqHwdr",
"searchcategory": null,
"entity_date": "Sat Sep 28 00:00:00 CST 2024",
"name": "Grandmas Recipes",
"longcaption": "Fun Style for kids"
}
}
}
Ian M
9/30/24, 11:37:17 AM EDT
This gave me : {"metadata":{"audience":"Families seeking fun cooking activities.","keywords":["Italian"],"author":"Anonymous"},"md":"Grandma's Recipes\n=================\n\n**Description:** Fun Style for kids - A Collection of Pizza Recipes\n\n **Author:** Anonymous \n **Keywords:** \n - Italian\n\nIntroduction\n----------------\n\nWelcome to Grandma's Recipes, where we bring you a delightful collection of pizza recipes that are fun and easy to prepare for kids. Inspired by Italian tradition, these recipes are perfect for family gatherings and creating joyful memories in the kitchen.\n\nRecipe List\n----------------\n\n- Classic Margherita Pizza\n- Pepperoni Delight\n- Vegetarian Garden Pizza\n- Cheesy Stuffed Crust Pizza\n- Mini Pizzas for Kids\n\nConclusion\n----------------\n\nWe hope these recipes bring fun and flavor to your family meals. Enjoy the experience of cooking together and savoring these delicious pizzas.\n\n","shortdesc":"Fun Style for kids - A Collection of Pizza Recipes","content_sections":[{"section_title":"Introduction","section_type":"paragraph","content":["Welcome to Grandma's Recipes, where we bring you a delightful collection of pizza recipes that are fun and easy to prepare for kids. Inspired by Italian tradition, these recipes are perfect for family gatherings and creating joyful memories in the kitchen."]},{"section_title":"Recipe List","section_type":"unordered_list","content":["Classic Margherita Pizza","Pepperoni Delight","Vegetarian Garden Pizza","Cheesy Stuffed Crust Pizza","Mini Pizzas for Kids"]},{"section_title":"Conclusion","section_type":"paragraph","content":["We hope these recipes bring fun and flavor to your family meals. Enjoy the experience of cooking together and savoring these delicious pizzas."]}],"title":"Grandma's Recipes","type":"topic"}
Ian M
9/30/24, 11:50:23 AM EDT
like nothing comes back through the websocket - my own messages (like this one) does not appear until I refresh the page
Ian M
9/30/24, 12:02:21 PM EDT
Altered code to look for the json in the body as well as the request parameter but in both cases it's looking for 'inputdata' as the main key
Christopher B
9/30/24, 12:37:43 PM EDT
Still got 500 error. {"inputdata":{"metadata":{"keywords":["Italion"],"primarymedia":"AZI-yKfVX_CelzxqHwdr","searchcategory":null,"entity_date":Sat Sep 28 00:00:00 CST 2024,"name":"Grandmas Recipes","longcaption":"Fun Style for kids"},"directions":"Pizza Recipies"}}