Skip to content
This repository was archived by the owner on Jul 19, 2024. It is now read-only.
This repository was archived by the owner on Jul 19, 2024. It is now read-only.

funcpack on Mac with AFCT 2.0.1-beta.24 doesn't produce runnable function app. #77

@bedej

Description

@bedej

I have a node.js function which runs successfully and I can test with "func host start".

I then run "funcpack pack ./" per the README.md. When I run "func host start" again, I get the below error spew.

I suspect funcpack may not work with AFCT v2? Just a guess since the README instructions say to use "func run" which appears to be a deprecated command in v2.

Http Functions:

GeneratePdf: http://localhost:7071/api/GeneratePdf

info: Worker.Node.26573904-abd1-47aa-9709-3ebc204ffbfd[0]
Worker was unable to load function GeneratePdf: 'Error: ENOENT: no such file or directory, open '/Users/bedejordan/Workspace/shelf19/src/functions/MiscellaneousServices/.funcpack/classes.trie''
info: Worker.Node.26573904-abd1-47aa-9709-3ebc204ffbfd[0]
Worker 26573904-abd1-47aa-9709-3ebc204ffbfd malformed message functionLoadResponse.result.result: string expected
info: Worker.Node.26573904-abd1-47aa-9709-3ebc204ffbfd[0]
Worker 26573904-abd1-47aa-9709-3ebc204ffbfd uncaught exception: functionLoadResponse.result.result: string expected
info: Worker.Node.26573904-abd1-47aa-9709-3ebc204ffbfd[0]
Worker 26573904-abd1-47aa-9709-3ebc204ffbfd exited with code 1
fail: Worker.Node.26573904-abd1-47aa-9709-3ebc204ffbfd[0]
Worker encountered an error.
info: Worker.Node.95a6dcda-491a-4c65-bdbe-ce946dcf91ac[0]
Start Process: node --inspect=5858 "/Users/bedejordan/.nvm/versions/node/v8.10.0/lib/node_modules/azure-functions-core-tools/bin/workers/node/dist/src/nodejsWorker.js" --host 127.0.0.1 --port 61332 --workerId 95a6dcda-491a-4c65-bdbe-ce946dcf91ac --requestId 5acb41db-1f54-4470-bafc-ae1d82d74493

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions