diff --git a/app/song/api/routers/v1/song.py b/app/song/api/routers/v1/song.py index 9bc2154..6912b78 100644 --- a/app/song/api/routers/v1/song.py +++ b/app/song/api/routers/v1/song.py @@ -321,7 +321,8 @@ async def download_song( response = await client.get(stream_audio_url, timeout=60.0) response.raise_for_status() - async with aiofiles.open(file_path, "wb") as f: + # aiofiles는 Path 객체를 문자열로 변환하여 사용 + async with aiofiles.open(str(file_path), "wb") as f: await f.write(response.content) # 프론트엔드에서 접근 가능한 URL 생성