Arc Forumnew | comments | leaders | submitlogin
Ask: expects type as 2nd argument?
2 points by feilaoda 4782 days ago | 4 comments
When i shut down the server and restart nsv, i get the errors:

-: expects type <number> as 2nd argument, given: 'nil; other arguments were: 1

=== context === topstories retrieve newspage g3087 g2086 handle-request-thread

My code download from https://github.com/nex3/arc

Some files crashed? or something alse? I'm starter on Arc. How to fix the error?



1 point by akkartik 4782 days ago | link

How do you shut down the server? Hit ctrl-c or something else? Can you copy a session from the console?

-----

2 points by feilaoda 4782 days ago | link

My code download from: https://github.com/nex3/arc , Hacker News code

ctrl+c or (quit)

My steps:

> (load "lib/news.arc")

> (thread (nsv 8000))

then submit a new story, and

> (quit)

and then ./arc.sh

> (load "lib/news.arc")

> (thread (nsv 8000))

When i click my site www.mydomain.com again, there are those errors from the console.

-----

1 point by akkartik 4782 days ago | link

Thanks for those details! I'll try to reproduce and respond back.

Update: reproduced. Debugging..

Update 2: This was a bug in a recent change in mine. I'm working on a fix, but you can in the meantime go back to the state of the repository on Jan 29th:

  $ git checkout e7a95ac658
(You'll need to run this from a clean directory, where you haven't modified any of the files.)

The fix shouldn't be long if you just want to wait. Sorry about this.

Update 3: Ok, it should be fixed now. Do a 'git pull' and try it. And feel free to ping me privately if there's still issues (email in profile). Sorry again.

(http://github.com/nex3/arc/commit/c442ab08c3)

-----

2 points by feilaoda 4781 days ago | link

Thank you very much. It's done.

-----