Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError fix for Imagemagick Cloud Vision API tutorial #490

Closed
wants to merge 2 commits into from

Commits on Sep 23, 2017

  1. TypeError fix for Imagemagick Cloud Vision API tutorial

    Incorrect version dependency for @google-cloud/vision 0.12. Should be 0.11.4.  This results in a critical TypeError for ImageMagik tutorial.
    
    This fix allows index.js to be backwards compatible for function calls against vision API 0.11.4 -- vision.detectSafeSearch. Results in TypeError: vision.detectSafeSearch is not a function. 
    
    Cloud Vision API v0.12 has deprecated detectSafeSearch() in favor of safeSearchDetection().
    
    Logs reference on Cloud Function: blurOffensiveImages
    "TypeError: vision.detectSafeSearch is not a function at exports.blurOffensiveImages (/user_code/index.js:44:17) at /var/tmp/worker/worker.js:659:26 at process._tickDomainCallback (internal/process/next_tick.js:135:7)"
    DevanM authored Sep 23, 2017
    Configuration menu
    Copy the full SHA
    97ee1c8 View commit details
    Browse the repository at this point in the history

Commits on Jun 14, 2018

  1. Configuration menu
    Copy the full SHA
    5da60d4 View commit details
    Browse the repository at this point in the history