skip to Main Content

Javascript – How to display error body on front end using axios

My fast api end point is here: @app.post("/api/signup", status_code=status.HTTP_200_OK) async def signup( credentials : signupcred ): try: print(credentials.email, credentials.password1, credentials.name ) response = account.create(email= credentials.email, password= credentials.password1, name = credentials.name , user_id= ID.unique() ) return {response} except Exception as e:…

VIEW QUESTION
Back To Top
Search