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

Host unavailable after short time on func start #720

Closed
julielerman opened this issue Oct 15, 2018 · 7 comments
Closed

Host unavailable after short time on func start #720

julielerman opened this issue Oct 15, 2018 · 7 comments

Comments

@julielerman
Copy link

julielerman commented Oct 15, 2018

I had functions that were working a month ago (literally ...I demo'd on Sept 15).
I've now updated:
VS Code to 1.28.1
AF extension to .11
AF CLI to 2.0.3

I'm on macOS.

The function I'm testing has an output binding to CosmosDB so I updated the extensions.csproj to

    <PackageReference Include="Microsoft.Azure.WebJobs.Extensions.CosmosDb" Version="3.0.1" />
    <PackageReference Include="Microsoft.Azure.WebJobs.Extensions.Twilio" Version="3.0.0" />
    <PackageReference Include="Microsoft.Azure.WebJobs.Script.ExtensionsMetadataGenerator" Version="1.0.1" />

FWIW, I've also done things like re-initialize the function folder. You know me...I've been trying things for hours now. :)

When I run using func start, I get the functions running (though they take a much longer time). I head over to Postman and hit one of the functions (a post). In VS Code host window, I can see the request coming in, but then nothing happens and after a short time, I get an error message about the host being unavailable. (See below)

I've looked at every thing I could find in this repo, the azure functions host repo and the webjobs sdk repo. Nothing is helping. Any ideas?

Also, when I debug, I never even hit any breakpoints.

Possibly related..I cant stop the app. Not even with CTRL-C. I have to quit VS Code.

Http Functions:

        Subscribe: http://localhost:7071/api/Subscribe

        AddDatatoCosmosDB: http://localhost:7071/api/AddDatatoCosmosDB

info: Microsoft.AspNetCore.Hosting.Internal.WebHost[1]
      Request starting HTTP/1.1 POST http://localhost:7071/api/Subscribe?message=8025785506  0
warn: Microsoft.Azure.WebJobs.Script.WebHost.Middleware.HostAvailabilityCheckMiddleware[2]
      Host unavailable after check. Returning error.
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[2]
      Request finished in 33308.6531ms 503
@julielerman
Copy link
Author

More data...
I deleted the obj and bin folders which caused an issue with the cosmosdb extension. That issue is when I ran func start, I got a warning that the extension was not installed. However, my simple HttpTrigger function worked in this case (a different function that has no cosmosdb bindings). When I reinstalled cosmosdb extension, not even that simple HttpTrigger function would work. It too, got hung up on the host being unavailable.

@julielerman
Copy link
Author

@julielerman
Copy link
Author

update: I've successfully created a brand new folder, azure function app and cosmosdb trigger that I'm able to debug (only after apply the double underscore fix #704 )

@ejizba
Copy link
Member

ejizba commented Oct 17, 2018

@julielerman so is this working for you now? In other words did you get your existing project to work or just a brand new app?

@julielerman
Copy link
Author

only on a brand new app. I had to abandon the other because of time issues. I still haven't figured out what was different.... But at least I was able to resolve it in the new way in time for my conference presentation. :)

@julielerman
Copy link
Author

p.s. when I have some tme again I will go check the "breaking changes" list.

@ejizba
Copy link
Member

ejizba commented Oct 31, 2018

Closing for now. Feel free to re-open if you can get a consistent repro

@ejizba ejizba closed this as completed Oct 31, 2018
@vscodebot vscodebot bot locked and limited conversation to collaborators Jan 30, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants