Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AWS de path hatası #102

Open
ttiras opened this issue Mar 16, 2022 · 4 comments
Open

AWS de path hatası #102

ttiras opened this issue Mar 16, 2022 · 4 comments

Comments

@ttiras
Copy link

ttiras commented Mar 16, 2022

digital ocean da sorunsuz çalışan kod aws lambda da hata veriyor.

Sanırım _initResources function ı path yapısı farklı olduğu için resources a ulaşamıyor.

{"errorType":"Runtime.UnhandledPromiseRejection","errorMessage":"Error: ENOENT: no such file or directory, scandir '/var/task/resources'","reason":{"errorType":"Error","errorMessage":"ENOENT: no such file or directory, scandir '/var/task/resources'","code":"ENOENT","errno":-2,"syscall":"scandir","path":"/var/task/resources","stack":["Error: ENOENT: no such file or directory, scandir '/var/task/resources'"," at Object.readdirSync (fs.js:1047:3)"," at W._initResources (/var/task/lambda.js:51:7731)"," at new W (/var/task/lambda.js:51:7637)"," at xh (/var/task/lambda.js💯16777)"," at Ia.handle_request (/var/task/lambda.js:28:3673)"," at s (/var/task/lambda.js:28:5676)"," at s (/var/task/lambda.js:28:5643)"," at s (/var/task/lambda.js:28:5643)"," at s (/var/task/lambda.js:28:5643)"," at s (/var/task/lambda.js:28:5643)"]},"promise":{},"stack":["Runtime.UnhandledPromiseRejection: Error: ENOENT: no such file or directory, scandir '/var/task/resources'"," at process.<anonymous> (/var/runtime/index.js:35:15)"," at process.emit (events.js:400:28)"," at processPromiseRejections (internal/process/promises.js:245:33)"," at processTicksAndRejections (internal/process/task_queues.js:96:32)"]}

@ttiras
Copy link
Author

ttiras commented May 5, 2023

Aynı hata vercel serverless functions üzerinde de oluşuyor.

Error: ENOENT: no such file or directory, scandir '/.next/server/app/api/iyzipay/resources'

Kimse aws tabanlı serverlarda node versiyonunu kullanmıyor mu acaba? Sadece ben karşılaşıyor olamam herhalde bu sorunla?

@emrecoban
Copy link

emrecoban commented Aug 23, 2023

Aynı sorunu ben de localimde yaşıyorum. Kendilerine e-posta ile sorunu ilettim. Eğer bir çözüm önerisi alamazsam üyeliğimi iptal ettireceğim.

Çözüm:
Next.js için sorunu /pages klasörü altında çalıştırarak çözdüm.

@ttiras
Copy link
Author

ttiras commented Aug 28, 2023

bilgi için teşekkürler. ben de pages klasöründe çalıştırıyorum ama bu klasöre destek birkaç yıl içinde sona erdiğinde, iyzipay-node bir 7 yıl daha güncellenmezse kullanamayabiliriz :). AWS üzerindeki modern servislerin path yapısı sebebiyle hiçbirisinde çalışmıyor.

@ondery
Copy link

ondery commented Jan 22, 2024

birkaç yıl değil, Next.js'de App Router yapısını kullanan biri olarak çoktan bu kütüphanenin kullanımı imkansız hale gelmiş bile :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants