Skip to content

formatMethodMap[type] is not a function in vision lib #1333

@uliporeggia

Description

@uliporeggia

Just got this error calling vision.detectText

Debug: internal, implementation, error 
    TypeError: Uncaught error: formatMethodMap[type] is not a function
    at /home/uli/Projetos/projeto-a/server/node_modules/gcloud/lib/vision/index.js:345:39
    at Array.map (native)
    at /home/uli/Projetos/projeto-a/server/node_modules/gcloud/lib/vision/index.js:388:18
    at Array.map (native)
    at /home/uli/Projetos/projeto-a/server/node_modules/gcloud/lib/vision/index.js:377:10
    at /home/uli/Projetos/projeto-a/server/node_modules/gcloud/lib/vision/index.js:158:5
    at Object.handleResp (/home/uli/Projetos/projeto-a/server/node_modules/gcloud/lib/common/util.js:126:3)
    at /home/uli/Projetos/projeto-a/server/node_modules/gcloud/lib/common/util.js:446:12
    at Request.onResponse [as _callback] (/home/uli/Projetos/projeto-a/server/node_modules/retry-request/index.js:117:7)
    at Request.self.callback (/home/uli/Projetos/projeto-a/server/node_modules/gcloud/node_modules/request/request.js:200:22)

I am using node v4.3.2 with hapi framework

Metadata

Metadata

Labels

api: visionIssues related to the Cloud Vision API.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions