Open anfibiacreativa opened 4 months ago
Adding further details: the issue doesn't happen when registering in the index.ts file, but with self-registration in the same function file.
Can you confirm if you were on the minimum version of core tools, v4.0.5530? The file that the function is registered from should not matter.
Hi there ! Thanks for providing this repo, super useful to have an example !
I have the same issue as @anfibiacreativa, running on Core tools version 4.0.5611
Here are my logs on a fresh git clone :
npm run start -- -p 9900
> httpstreamsample@1.0.0 prestart
> npm run clean && npm run build && npm run createInputFile
> httpstreamsample@1.0.0 clean
> rimraf dist
> httpstreamsample@1.0.0 build
> tsc
> httpstreamsample@1.0.0 createInputFile
> node ./dist/src/scripts/createInputFile.js
> httpstreamsample@1.0.0 start
> func start -p 9900
Can't determine project language from files. Please use one of [--csharp, --javascript, --typescript, --java, --python, --powershell, --custom]
Can't determine project language from files. Please use one of [--csharp, --javascript, --typescript, --java, --python, --powershell, --custom]
Can't determine project language from files. Please use one of [--csharp, --javascript, --typescript, --java, --python, --powershell, --custom]
Azure Functions Core Tools
Core Tools Version: 4.0.5611 Commit hash: N/A +591b8aec842e333a87ea9e23ba390bb5effe0655 (64-bit)
Function Runtime Version: 4.31.1.22191
Can't determine project language from files. Please use one of [--csharp, --javascript, --typescript, --java, --python, --powershell, --custom]
Can't determine project language from files. Please use one of [--csharp, --javascript, --typescript, --java, --python, --powershell, --custom]
Can't determine project language from files. Please use one of [--csharp, --javascript, --typescript, --java, --python, --powershell, --custom]
[2024-04-30T08:36:17.421Z] The 'FUNCTIONS_WORKER_RUNTIME' setting is required. Please specify a valid value. See https://go.microsoft.com/fwlink/?linkid=2257963 for more information. The application will continue to run, but may throw an exception in a future release.
[2024-04-30T08:36:17.464Z] No job functions found. Try making your job classes and methods public. If you're using binding extensions (e.g. Azure Storage, ServiceBus, Timers, etc.) make sure you've called the registration method for the extension(s) in your startup code (e.g. builder.AddAzureStorage(), builder.AddServiceBus(), builder.AddTimers(), etc.).
For detailed output, run func with --verbose flag.
[2024-04-30T08:36:22.422Z] Host lock lease acquired by instance ID '000000000000000000000000FFDE4C9C'.
My bad, I had a typo in the local.settings.json file - all good now, thanks!
Hi, I tried to run the sample but was not successful. Functions don't appear to be correctly registered due to config. Error: [2024-03-04T11:31:04.660Z] No job functions found. Try making your job classes and methods public. If you're using binding extensions (e.g. Azure Storage, ServiceBus, Timers, etc.) make sure you've called the registration method for the extension(s) in your startup code (e.g. builder.AddAzureStorage(), builder.AddServiceBus(), builder.AddTimers(), etc.).
Reproduction steps: Clone, install, add local config as indicated in the docs and start the functions as per the readme.