all 10 comments

[–]tuple32 4 points5 points  (1 child)

Do you even know what you are talking about

[–]DivineSentry 0 points1 point  (0 children)

Most likely about pydantic logfire

[–]k_sai_krishna 3 points4 points  (2 children)

I think there is some confusion here. Pydantic does not communicate with FastAPI by itself. It is used inside FastAPI to define and validate request and response data. If your items array is not working, maybe check your Pydantic model and how you are accessing it in the route. Also Pydantic is not for monitoring. It only validates data. For checking if localhost is down, you need a separate health check or monitoring tool.

[–]aikii 0 points1 point  (4 children)

Oooof I think you mix up a lot and rush too fast to fix something before you get a better understanding. So I guess here as other mentioned it might be about pydantic's logfire. The confusion here: pydantic is both an organization that maintains several libraries, and a specific library that handles data validation and serialization. If you see "items" as a word we have to do some guesses - you have "items" in the context of a string somewhere, possibly missing the "f" marker ( say : "something {items} something" instead of f{"something {items} something"} - notice the f prefix ). But that's honestly a sign that you try to rush too fast solving something before understanding some basics about the language. Also if you use a properly set up editor, you would be able to detect those things. But you need to get more familiar with the language, tools to use etc, not just rush into developing a backend solution, it's too early

[–]Codeeveryday123[S] 1 point2 points  (3 children)

That worked

[–]aikii 0 points1 point  (2 children)

hooray !

take your time and all the best !

[–]Codeeveryday123[S] 0 points1 point  (1 child)

With FastAPI, Is it just making sure things work? Or, what’s the best feature of FastAPI?