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

Possible fix #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Possible fix #1

wants to merge 1 commit into from

Conversation

thgh
Copy link

@thgh thgh commented Mar 26, 2020

No description provided.

@vercel
Copy link

vercel bot commented Mar 26, 2020

This pull request is being automatically deployed with ZEIT Now (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://zeit.co/tetigi/my-sapper-app/5vvzu9m6t
✅ Preview: https://my-sapper-app-git-fork-thgh-patch-1.tetigi.now.sh

@tetigi
Copy link
Owner

tetigi commented Mar 26, 2020

Error logs:

[GET] /
11:57:46:02
Status:-1
Duration:265.48ms
Memory Used:24 MB
ID:fh5lq-1585223866027-e565eb854e88
User Agent:Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:74.0) Gecko/20100101 Firefox/74.0
2020-03-26T11:57:46.305Z	undefined	
ERROR	Unhandled Promise Rejection
{
   "errorType":"Runtime.UnhandledPromiseRejection",
   "errorMessage":"Error: ENOENT: no such file or directory, open 'test.txt'",
   "reason":{
      "errorType":"Error",
      "errorMessage":"ENOENT: no such file or directory, open 'test.txt'",
      "code":"ENOENT",
      "errno":-2,
      "syscall":"open",
      "path":"test.txt",
      "stack":[
         "Error: ENOENT: no such file or directory, open 'test.txt'"
      
]
   
},
   "promise":{

   
},
   "stack":[
      "Runtime.UnhandledPromiseRejection: Error: ENOENT: no such file or directory, open 'test.txt'",
      "    at process.<anonymous> (/var/runtime/index.js:35:15)",
      "    at process.emit (events.js:228:7)",
      "    at processPromiseRejections (internal/process/promises.js:201:33)",
      "    at processTicksAndRejections (internal/process/task_queues.js:95:32)"
   
]
}

2020-03-26T11:57:46.319Z	undefined	ERROR	Unhandled rejection: [Error: ENOENT: no such file or directory, open 'test.txt'] {  errno: -2,  code: 'ENOENT',  syscall: 'open',  path: 'test.txt'}RequestId: c3192b99-3711-470f-9857-28f4e78b5eb7 Error: Runtime exited with error: exit status 1Runtime.ExitError

@tetigi
Copy link
Owner

tetigi commented Mar 26, 2020

I moved test.txt to somewhere that is exposed by the index.js (rather than just being at the base workspace level, I moved it into static/) and it now seems to work. Thanks for your help!

#2

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

Successfully merging this pull request may close these issues.

2 participants