Skip to content

Google Safe Browsing v5 #24695

@alexcastrodev

Description

@alexcastrodev

Hi,

I am testing the google-apis-safebrowsing_v5 gem, and i got nil as result.
idk if i am doing something wrong.

This is my simple example

client = Google::Apis::SafebrowsingV5::SafebrowsingService.new
client.request_options.header ||= {}
client.request_options.header['Referer'] = 'http://localhost'
client.key = ENV.fetch("GOOGLE_SAFE_LINK_KEY")
r = client.search_hashes(hash_prefixes: ['BQRvJg'])
puts "GEM RESULT: #{r}"

I tested in Postman, it returns me 200 ( and i think gem did it as well )

Image

I also Isolated the issue in my GH repo: https://github.com/alexcastrodev/safe-browsing-v5-protobuf-issue

Appreciate community help

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