Skip to content

PermissionError: [Errno 13] Permission denied: 'C:\\Users\\yotam\\AppData\\Local\\Temp\\tmpfk7tmhv0.json' #4

Description

@yotam201410

the example doesnt seem to work

import uvicorn
from fastapi import FastAPI
from profyle.fastapi import ProfyleMiddleware

app = FastAPI()
# Trace all requests that match that start with /users
# with a minimum duration of 100ms and a maximum stack depth of 20
app.add_middleware(
    ProfyleMiddleware,
    pattern="/users*",

)


@app.get("/users/{user_id}")
async def get_user(user_id: int):
    return {"hello": "user"}


uvicorn.run(app, host="127.0.0.1", port=8080)

i get the error mentioned in the title. your library seems really cool and i would really like to use it

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions