Next.js Discord

Discord Forum

429 - Too Many Requests

Unanswered
Californian posted this in #help-forum
Open in Discord
CalifornianOP
import { GoogleMap, LoadScriptNext, StreetViewPanorama } from '@react-google-maps/api';

<LoadScriptNext googleMapsApiKey={process.env.NEXT_PUBLIC_GOOGLE_MAPS_API_KEY!}>
      <GoogleMap
        mapContainerStyle={containerStyle}
        center={center}
        zoom={10}
        options={options}
      >
        <StreetViewPanorama
          options={{
            visible: streetView,
            position: center,
            disableDefaultUI: true,
          }}
        />
      </GoogleMap>
      
    </LoadScriptNext>


code simplified but similar to above.

I am showing a few different maps as the user goes through places in my game.

Only when I go to the user submitted streetviews (these look like circles when you use the orange pegman) do I sometimes get 429(Too Many Requests) vs the regular Google walkable/moveable streetview with arrows.

Please help me understand why/try to implement some retry mechanism.

1 Reply

CalifornianOP
When this happens the map will be a black screen