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

AxiosError thrown when Internet Connection Offline #951

Open
mrjackyliang opened this issue Mar 1, 2023 · 1 comment
Open

AxiosError thrown when Internet Connection Offline #951

mrjackyliang opened this issue Mar 1, 2023 · 1 comment
Assignees
Labels
triage me I really want to be triaged. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.

Comments

@mrjackyliang
Copy link

Thanks for stopping by to let us know something could be better!


PLEASE READ

If you have a support contract with Google, please create an issue in the support console. This will ensure a timely response.

Discover additional support services for the Google Maps Platform, including developer communities, technical guidance, and expert support at the Google Maps Platform support resources page.

If your bug or feature request is not related to this particular library, please visit the Google Maps Platform issue trackers.

Check for answers on StackOverflow with the google-maps tag.


Please be sure to include as much information as possible:

Environment details

  1. Geocode API
  2. macOS Ventura 13.1
  3. @googlemaps/google-maps-services-js@3.3.27

Steps to reproduce

  1. Take internet connection offline
  2. Try running any request

Code example

try {
    const api = await client.reverseGeocode({
      params: {
        language: Language.en,
        latlng: {
          latitude,
          longitude,
        },
        result_type: [AddressType.street_address],
        key: 'invalid or valid API key, doesn't matter here',
      },
    });
}

Stack trace

AxiosError: options must be an object
    at Object.assertOptions (/xxx/node_modules/axios/dist/node/axios.cjs:3675:11)
    at Axios.request (/xxx/node_modules/axios/dist/node/axios.cjs:3750:17)
    at Function.wrap [as request] (/xxx/node_modules/axios/dist/node/axios.cjs:29:15)
    at /xxx/node_modules/retry-axios/dist/index.js:1:1819
    at async fetchGoogleGeocode (webpack-internal:///(api)/./src/external-api/google-geocode.ts:26:21) {
  code: 'ERR_BAD_OPTION_VALUE'
}

Following these steps will guarantee the quickest resolution possible.

Thanks!

@mrjackyliang mrjackyliang 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 Mar 1, 2023
@wangela
Copy link
Member

wangela commented Mar 1, 2023

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

@mrjackyliang 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage me I really want to be triaged. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Projects
None yet
Development

No branches or pull requests

2 participants