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

GeoCode: request error over geocode API #1025

Open
frank-zsy opened this issue Aug 26, 2023 · 3 comments
Open

GeoCode: request error over geocode API #1025

frank-zsy opened this issue Aug 26, 2023 · 3 comments
Labels
needs more info This issue needs more information from the customer to proceed.

Comments

@frank-zsy
Copy link

Environment details

  1. Specify the API: GeoCode
  2. OS type and version: MacOS Ventura
  3. Library version and other environment information: 3.3.36

Steps to reproduce

  1. Run the code below in bash with Node.js 14.3.0

Code example

try {
  const result = await client.geocode({
    params: {
      key: 'my_key',
      address: 'Log Angeles, CA',
    },
  });
  console.log(result);
} catch (e: any) {
  console.log(e.response.data.error_message);
}

This is quite simple demo to get geocode of an address using GeoCode API. The key is set and there is no any restrictions over the key.

But I got Requests to this API must be over SSL. Load the API with "https://" instead of "http://". and HTTP status code 403 as error message for the request. Is there any other configs or options to enable HTTPS or should I specify the endpoint manually? I can not find solution or documentation about this.

Thanks.

@frank-zsy frank-zsy added triage me I really want to be triaged. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. labels Aug 26, 2023
@wangela
Copy link
Member

wangela commented Aug 26, 2023

If you would like to upvote the priority of this issue, please comment below or react on the original post above with 👍 so we can see what is popular when we triage.

@frank-zsy Thank you for opening this issue. 🙏
Please check out these other resources that might help you get to a resolution in the meantime:

This is an automated message, feel free to ignore.

@frank-zsy
Copy link
Author

update: the old SDK @google/maps works fine though.

@usefulthink usefulthink added needs more info This issue needs more information from the customer to proceed. and removed type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. triage me I really want to be triaged. labels Oct 9, 2023
@usefulthink
Copy link
Contributor

your example works as expected on my machine with almost the same setup. Can you share a full example (including creating the client etc.)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs more info This issue needs more information from the customer to proceed.
Projects
None yet
Development

No branches or pull requests

3 participants