-
Notifications
You must be signed in to change notification settings - Fork 28
A problem using Grib.Api in Azure Functions project #100
Comments
Your title mentions Azure Functions, does that mean that you don't have any problem when running your program on a local machine? "Application break down" sounds like an unhandled expcetion, that causes the program to terminate. What version of GribApi do you use? Have you had a look at #52 ? |
When I use it in Console project everything works. I surround this code with Try/Catch but it doesn't throw any exceptions and application just break down (maybe exception throws on lower levels). I use version 0.7.1 and I also looked at #52 but there used version 1.0.0 |
Please try upgrading to newest beta to see if that solves your problem. |
I have updated the package to beta version, after it I can run functions on my local PC but when I publishing on Azure and call the function the exception about Environment shows |
What is the value of The message you see indicates that GribApi.NET could not locate the |
The value for GribEnvironment.DefinitionsPath looks like string.Empty from the exception message. Yes I copy Grib.Api folder to the wwwroot folder on Azure Functions and Grib.Api folder contains definitions folder, but it all doesn't help, I still get the same mistake |
Have you to explictly set GribApi.NET has some heuristics to search for the definitions folder, but it won't do an exhaustive search for it. |
Yes, it helps. But now I face the same problem as here #52. As I understand the solution is to manually copy Grib.Api.Native.dll to bin folder? |
Glad it helped. |
I hurried up with results( |
UPD: I achive running beta-4 on Azure Functions, but setter for DefinitionsPath is still doesn't work. |
Could you put a few words on how you got it working? |
OK, maybe not all of this steps are obligatory but it helps me
|
When I call GribFile constructor at first time everything goes fine, but when I try iterate throught it application breaks down and exit.
using (GribFile file = new GribFile(@"file_name.grib2")) { var msg = file.First(); }
It all looks similar to issue #22
The text was updated successfully, but these errors were encountered: