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

warbler not working #83

Closed
Potmos opened this issue Aug 16, 2017 · 4 comments
Closed

warbler not working #83

Potmos opened this issue Aug 16, 2017 · 4 comments

Comments

@Potmos
Copy link

Potmos commented Aug 16, 2017

I followed the exact example that there is on the site using warbler but I am getting page as a static result.

let time() =
    System.DateTime.Now.ToString()

let webApp =
    choose [
        GET >=>
            choose [
                route "/once"      >=> (time() |> text)
                route "/everytime" >=> warbler (fun _ -> (time() |> text))
            ]
    ]
@dustinmoris
Copy link
Member

Sorry for this bug, I just pushed a fix for it. The change to the continuation format caused this issue and the test didn't test for it properly anymore, because we didn't pre-compile the webApp with the next continuation and therefore it didn't capture this bug. Both is fixed now and I'll release a new NuGet package in the next 10 minutes.

@Potmos
Copy link
Author

Potmos commented Aug 21, 2017

Thanks a lot for the fix.
No need to be sorry it is still in beta and you've been doing a great job so far. Keep up the good work.

@algunion
Copy link

@dustinmoris, the warbler issue seems to be back (I encountered the issue on my custom code - but also added the simple example you provided - just to be sure I didn't mess up something else).

I am using Giraffe 6.0.0.

@algunion
Copy link

Sorry ... wrong call here. After reading some other issues, I discovered that there is already a global warbler defined.

After deleting my local warbler everything just works.

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