You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Snippet below gives invalid request even when providing necessary lat and long with valid API key. I've tried with the array, an object with lat/lng, as well as an object with latitude/longitude. None appear to give me a successful response. If I try to use other functions like elevation from the example here I can get a 200 back.
"AxiosError: Request failed with status code 400\n at settle (webpack-internal:///(action-browser)/./node_modules/@googlemaps/google-maps-services-js/dist/adapter.js:60:16)\n at eval (webpack-internal:///(action-browser)/./node_modules/@googlemaps/google-maps-services-js/dist/adapter.js:81:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at Axios.request (webpack-internal:///(action-browser)/./node_modules/axios/dist/node/axios.cjs:4252:41)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async getNearbyGyms (webpack-internal:///(action-browser)/./src/actions/gym.ts:29:26)\n at async /Users/tommypickles/Developer/pump-buddy/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:157:2088\n at async handleAction (/Users/tommypickles/Developer/pump-buddy/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:156:21940)\n at async renderToHTMLOrFlightImpl (/Users/tommypickles/Developer/pump-buddy/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:161:22192)\n at async doRender (/Users/tommypickles/Developer/pump-buddy/node_modules/next/dist/server/base-server.js:1565:34)\n at async responseGenerator (/Users/tommypickles/Developer/pump-buddy/node_modules/next/dist/server/base-server.js:1813:28)\n at async DevServer.renderToResponseWithComponentsImpl (/Users/tommypickles/Developer/pump-buddy/node_modules/next/dist/server/base-server.js:1823:28)\n at async DevServer.renderPageComponent (/Users/tommypickles/Developer/pump-buddy/node_modules/next/dist/server/base-server.js:2250:24)\n at async DevServer.renderToResponseImpl (/Users/tommypickles/Developer/pump-buddy/node_modules/next/dist/server/base-server.js:2288:32)\n at async DevServer.pipeImpl (/Users/tommypickles/Developer/pump-buddy/node_modules/next/dist/server/base-server.js:959:25)\n at async NextNodeServer.handleCatchallRenderRequest (/Users/tommypickles/Developer/pump-buddy/node_modules/next/dist/server/next-server.js:281:17)\n at async DevServer.handleRequestImpl (/Users/tommypickles/Developer/pump-buddy/node_modules/next/dist/server/base-server.js:853:17)\n at async /Users/tommypickles/Developer/pump-buddy/node_modules/next/dist/server/dev/next-dev-server.js:371:20\n at async Span.traceAsyncFn (/Users/tommypickles/Developer/pump-buddy/node_modules/next/dist/trace/trace.js:153:20)\n at async DevServer.handleRequest (/Users/tommypickles/Developer/pump-buddy/node_modules/next/dist/server/dev/next-dev-server.js:368:24)\n at async invokeRender (/Users/tommypickles/Developer/pump-buddy/node_modules/next/dist/server/lib/router-server.js:230:21)\n at async handleRequest (/Users/tommypickles/Developer/pump-buddy/node_modules/next/dist/server/lib/router-server.js:408:24)\n at async requestHandlerImpl (/Users/tommypickles/Developer/pump-buddy/node_modules/next/dist/server/lib/router-server.js:432:13)\n at async Server.requestListener (/Users/tommypickles/Developer/pump-buddy/node_modules/next/dist/server/lib/start-server.js:146:13)"
The text was updated successfully, but these errors were encountered:
boob1e
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
Jan 19, 2025
Looks like there's things marked as optional that are not optional. At a minimum radius is required. Also this note doesn't seem correct * Note that `radius` must not be included if `rankby=distance` is specified.
Environment details
Steps to reproduce
Code example
Stack trace
The text was updated successfully, but these errors were encountered: