Azure function : No HTTP triggers found.

SinP 0 Reputation points
2024-02-01T21:49:06.5633333+00:00

Azure function basis deployment is giving "No HTTP triggers found." json function file looks correct and i can see jar file deployed as well.

{
  "scriptFile" : "../xgft-1.0-SNAPSHOT.jar",
  "entryPoint" : "com.parrot.tv.HttpTriggerJava1.run",
  "bindings" : [ {
    "type" : "httpTrigger",
    "direction" : "in",
    "name" : "req",
    "methods" : [ "GET", "POST" ],
    "authLevel" : "FUNCTION"
  }, {
    "type" : "http",
    "direction" : "out",
    "name" : "$return"
  } ]
}
4:37:54 PM xgft: Skipping post build. Project type: Run-From-Zip
4:37:54 PM xgft: Triggering recycle (preview mode disabled).
4:37:54 PM xgft: Deployment successful.
4:37:56 PM xgft: Starting app...
4:37:57 PM xgft: Querying triggers...
4:37:59 PM xgft: No HTTP triggers found.

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,093 questions
0 comments No comments
{count} votes

4 answers

Sort by: Most helpful
  1. SinP 0 Reputation points
    2024-02-01T21:49:57.69+00:00

    I can see command is giving now error

    4:23:38 PM: Finished running command: "git init".
    4:26:07 PM xgft: Stopping app...
    4:26:08 PM xgft: Starting deployment...
    4:26:08 PM xgft: Creating zip package...
    4:26:09 PM xgft: Adding 33 files to zip package...
    4:26:09 PM xgft: c:\trunk\waahtv\xgft\host.json
    4:26:09 PM xgft: c:\trunk\waahtv\xgft\settings.gradle
    4:26:09 PM xgft: c:\trunk\waahtv\xgft\build.gradle
    4:26:09 PM xgft: c:\trunk\waahtv\xgft\.funcignore
    4:26:09 PM xgft: c:\trunk\waahtv\xgft\.gradle\vcs-1\gc.properties
    4:26:09 PM xgft: c:\trunk\waahtv\xgft\build\libs\xgft-1.0-SNAPSHOT.jar
    4:26:09 PM xgft: c:\trunk\waahtv\xgft\.gradle\8.0.2\checksums\checksums.lock
    4:26:09 PM xgft: c:\trunk\waahtv\xgft\.gradle\8.0.2\fileHashes\fileHashes.lock
    4:26:09 PM xgft: c:\trunk\waahtv\xgft\build\tmp\compileJava\previous-compilation-data.bin
    4:26:09 PM xgft: c:\trunk\waahtv\xgft\.gradle\8.0.2\dependencies-accessors\dependencies-accessors.lock
    4:26:09 PM xgft: c:\trunk\waahtv\xgft\build\azure-functions\xgft-1706822606642\xgft-1.0-SNAPSHOT.jar
    4:26:09 PM xgft: c:\trunk\waahtv\xgft\build\azure-functions\xgft-1706822606642\local.settings.json
    4:26:09 PM xgft: c:\trunk\waahtv\xgft\build\classes\java\main\com\parrot\tv\HttpTriggerJava1.class
    4:26:09 PM xgft: c:\trunk\waahtv\xgft\src\main\java\com\parrot\tv\HttpTriggerJava1.java
    4:26:09 PM xgft: c:\trunk\waahtv\xgft\build\azure-functions\xgft-1706822606642\lib\azure-functions-java-core-library-1.0.0.jar
    4:26:09 PM xgft: c:\trunk\waahtv\xgft\build\azure-functions\xgft-1706822606642\host.json
    4:26:09 PM xgft: c:\trunk\waahtv\xgft\build\tmp\jar\MANIFEST.MF
    4:26:09 PM xgft: c:\trunk\waahtv\xgft\.gradle\buildOutputCleanup\outputFiles.bin
    4:26:09 PM xgft: c:\trunk\waahtv\xgft\.gradle\buildOutputCleanup\cache.properties
    4:26:09 PM xgft: c:\trunk\waahtv\xgft\.gradle\buildOutputCleanup\buildOutputCleanup.lock
    4:26:09 PM xgft: c:\trunk\waahtv\xgft\.gradle\checksums\sha1-checksums.bin
    4:26:09 PM xgft: c:\trunk\waahtv\xgft\.gradle\checksums\md5-checksums.bin
    4:26:09 PM xgft: c:\trunk\waahtv\xgft\.gradle\checksums\checksums.lock
    4:26:09 PM xgft: c:\trunk\waahtv\xgft\.gradle\7.2\gc.properties
    4:26:09 PM xgft: c:\trunk\waahtv\xgft\.gradle\7.2\executionHistory\executionHistory.lock
    4:26:09 PM xgft: c:\trunk\waahtv\xgft\.gradle\7.2\executionHistory\executionHistory.bin
    4:26:09 PM xgft: c:\trunk\waahtv\xgft\build\azure-functions\xgft-1706822606642\HttpTriggerJava1\function.json
    4:26:09 PM xgft: c:\trunk\waahtv\xgft\.gradle\7.2\fileHashes\fileHashes.bin
    4:26:09 PM xgft: c:\trunk\waahtv\xgft\.gradle\7.2\fileHashes\resourceHashesCache.bin
    4:26:09 PM xgft: c:\trunk\waahtv\xgft\.gradle\7.2\fileHashes\fileHashes.lock
    4:26:09 PM xgft: c:\trunk\waahtv\xgft\.gradle\7.2\fileChanges\last-build.bin
    4:26:09 PM xgft: c:\trunk\waahtv\xgft\.gradle\7.2\dependencies-accessors\gc.properties
    4:26:09 PM xgft: c:\trunk\waahtv\xgft\.gradle\7.2\dependencies-accessors\dependencies-accessors.lock
    4:34:14 PM: Error: socket hang up
    4:37:47 PM xgft: Stopping app...
    4:37:48 PM xgft: Starting deployment...
    4:37:48 PM xgft: Creating zip package...
    4:37:48 PM xgft: Adding 38 files to zip package...
    4:37:48 PM xgft: c:\trunk\waahtv\xgft\.funcignore
    4:37:48 PM xgft: c:\trunk\waahtv\xgft\settings.gradle
    4:37:48 PM xgft: c:\trunk\waahtv\xgft\host.json
    4:37:48 PM xgft: c:\trunk\waahtv\xgft\build.gradle
    4:37:48 PM xgft: c:\trunk\waahtv\xgft\build\libs\xgft-1.0-SNAPSHOT.jar
    4:37:48 PM xgft: c:\trunk\waahtv\xgft\build\tmp\jar\MANIFEST.MF
    4:37:48 PM xgft: c:\trunk\waahtv\xgft\src\main\java\com\parrot\tv\HttpTriggerJava1.java
    4:37:48 PM xgft: c:\trunk\waahtv\xgft\build\tmp\compileJava\previous-compilation-data.bin
    4:37:48 PM xgft: c:\trunk\waahtv\xgft\.gradle\vcs-1\gc.properties
    4:37:48 PM xgft: c:\trunk\waahtv\xgft\.gradle\buildOutputCleanup\cache.properties
    4:37:48 PM xgft: c:\trunk\waahtv\xgft\.gradle\buildOutputCleanup\outputFiles.bin
    4:37:48 PM xgft: c:\trunk\waahtv\xgft\.gradle\buildOutputCleanup\buildOutputCleanup.lock
    4:37:48 PM xgft: c:\trunk\waahtv\xgft\.gradle\checksums\sha1-checksums.bin
    4:37:48 PM xgft: c:\trunk\waahtv\xgft\.gradle\checksums\md5-checksums.bin
    4:37:48 PM xgft: c:\trunk\waahtv\xgft\.gradle\checksums\checksums.lock
    4:37:48 PM xgft: c:\trunk\waahtv\xgft\.gradle\8.0.2\dependencies-accessors\dependencies-accessors.lock
    4:37:48 PM xgft: c:\trunk\waahtv\xgft\.gradle\8.0.2\dependencies-accessors\gc.properties
    4:37:48 PM xgft: c:\trunk\waahtv\xgft\.gradle\7.2\gc.properties
    4:37:48 PM xgft: c:\trunk\waahtv\xgft\.gradle\7.2\executionHistory\executionHistory.bin
    4:37:48 PM xgft: c:\trunk\waahtv\xgft\.gradle\7.2\fileHashes\fileHashes.lock
    4:37:48 PM xgft: c:\trunk\waahtv\xgft\.gradle\7.2\fileHashes\fileHashes.bin
    4:37:48 PM xgft: c:\trunk\waahtv\xgft\.gradle\7.2\executionHistory\executionHistory.lock
    4:37:48 PM xgft: c:\trunk\waahtv\xgft\.gradle\7.2\fileHashes\resourceHashesCache.bin
    4:37:48 PM xgft: c:\trunk\waahtv\xgft\.gradle\8.0.2\gc.properties
    4:37:48 PM xgft: c:\trunk\waahtv\xgft\.gradle\7.2\fileChanges\last-build.bin
    4:37:48 PM xgft: c:\trunk\waahtv\xgft\.gradle\8.0.2\fileHashes\fileHashes.lock
    4:37:48 PM xgft: c:\trunk\waahtv\xgft\.gradle\7.2\dependencies-accessors\dependencies-accessors.lock
    4:37:48 PM xgft: c:\trunk\waahtv\xgft\build\azure-functions\xgft-1706822606642\local.settings.json
    4:37:48 PM xgft: c:\trunk\waahtv\xgft\build\azure-functions\xgft-1706822606642\xgft-1.0-SNAPSHOT.jar
    4:37:48 PM xgft: c:\trunk\waahtv\xgft\.gradle\8.0.2\fileChanges\last-build.bin
    4:37:48 PM xgft: c:\trunk\waahtv\xgft\.gradle\8.0.2\checksums\md5-checksums.bin
    4:37:48 PM xgft: c:\trunk\waahtv\xgft\.gradle\8.0.2\checksums\sha1-checksums.bin
    4:37:48 PM xgft: c:\trunk\waahtv\xgft\build\azure-functions\xgft-1706822606642\host.json
    4:37:48 PM xgft: c:\trunk\waahtv\xgft\.gradle\7.2\dependencies-accessors\gc.properties
    4:37:48 PM xgft: c:\trunk\waahtv\xgft\.gradle\8.0.2\checksums\checksums.lock
    4:37:48 PM xgft: c:\trunk\waahtv\xgft\build\classes\java\main\com\parrot\tv\HttpTriggerJava1.class
    4:37:48 PM xgft: c:\trunk\waahtv\xgft\build\azure-functions\xgft-1706822606642\lib\azure-functions-java-core-library-1.0.0.jar
    4:37:48 PM xgft: c:\trunk\waahtv\xgft\build\azure-functions\xgft-1706822606642\HttpTriggerJava1\function.json
    4:37:48 PM xgft: Zip package size: 82 kB
    4:37:52 PM xgft: Updating submodules.
    4:37:52 PM xgft: Preparing deployment for commit id 'b9e3668226'.
    4:37:53 PM xgft: Skipping build. Project type: Run-From-Zip
    4:37:54 PM xgft: Skipping post build. Project type: Run-From-Zip
    4:37:54 PM xgft: Triggering recycle (preview mode disabled).
    4:37:54 PM xgft: Deployment successful.
    4:37:56 PM xgft: Starting app...
    4:37:57 PM xgft: Querying triggers...
    4:37:59 PM xgft: No HTTP triggers found.
    

  2. Pinaki Ghatak 4,610 Reputation points Microsoft Employee
    2024-02-02T08:20:18.77+00:00

  3. Mike Urnun 9,816 Reputation points Microsoft Employee
    2024-02-07T09:37:51.19+00:00

    Hello @SinP & @Joel Bull - Thank you both for reaching out, and engaging us on the MS Q&A. Were you using VS Code for your deployments? If so, there was a critical bug (in version 1.13.2 of the Functions extension for VS Code) that was fixed as recently as yesterday, refer to: https://github.com/microsoft/vscode-azurefunctions/issues/3971

    I hope this helps bring clarity to the issue. If the issue persists despite downgrading/upgrading the extension, feel free to tag me in the comments below and I'll dig deeper..


    Please "Accept Answer" if the answer is helpful so that others in the community may benefit from your experience.


  4. Tech AFRICAB2C 0 Reputation points
    2024-05-04T19:01:01.75+00:00

    Hello,

    I am facing the same problem and have tride the different solutions mentioned. Any update on the issue or a solution?


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.