Giter Club home page Giter Club logo

Comments (9)

franklintarter avatar franklintarter commented on July 19, 2024 1

Woohoo!

from gatsby-source-google-places.

franklintarter avatar franklintarter commented on July 19, 2024

@hartey11

I just tested with a brand new gatsby default starter and it worked fine with both gatsby develop and gatsby build. I'm not sure what else to tell you other than that it smells like an npm/yarn caching issue where you've still got the old package somehow. It's odd that it happens to you both on Netlify and on locally when you build.

Try running through yarn cache clean and gatsby clean if you haven't already.

I'd like to help you with this I need help reproducing it. Would you create a fresh repo from gatsby new default that reproduces, and link it here (sans API key)? I can pull it and see if I can experience the issue. It really does smell like a caching issue, but linking me to the fresh repo would help rule anything else out.

from gatsby-source-google-places.

jonny-harte avatar jonny-harte commented on July 19, 2024

@franklintarter yeah I'm at a bit of a loss. Its working fine for me now locally (both develop and build) but I'm still getting the error on netlify, even after deleting my site and starting again.

from gatsby-source-google-places.

franklintarter avatar franklintarter commented on July 19, 2024

@hartey11
Bummer. Maybe something funky happened with your yarn.lock or package.json.lock? You could try deleting those and running yarn or npm install to regenerate them. Then inspect them to make sure they're referencing the 0.0.5 version of this package. Then commit them to see if it helps Netlify pull the right version.

from gatsby-source-google-places.

jonny-harte avatar jonny-harte commented on July 19, 2024

@franklintarter made some small progress... been able to confirm that netlify is getting the latest version 0.0.5.

So I'm guessing something is stopping the response from being received correctly by netlify. I can see errors are being output to the console from the promise, so maybe google is returning something else or in a different format?

Here's a link to issue I opened on netlify for reference:
https://community.netlify.com/t/updating-node-modules/12087/16

from gatsby-source-google-places.

franklintarter avatar franklintarter commented on July 19, 2024

@hartey11
Interesting. So the old package thing could have been a red herring. I will try my own Netlify deployment a bit later this week and let you know if I can encounter the same issue.

from gatsby-source-google-places.

franklintarter avatar franklintarter commented on July 19, 2024

@hartey11
I stumbled upon what I think could be your issue!

The message you are getting is a red herring. The call to the google API is failing. I would guess the reason is that your API key is not getting set correctly in the Netlify environment. I also forgot to set up my API key and got the same error you've been getting.

I'm going to update the package so that errors from the Google API will get rethrown and the messages can be seen appropriately.

from gatsby-source-google-places.

franklintarter avatar franklintarter commented on July 19, 2024

@hartey11
Okay, I updated the package handle errors from the API so you should see them in the console. Please try yarn add gatsby-source-google-places to update the package to version 0.0.6. Hopefully, you'll see something helpful in your console that will help debug your Netlify issue.

Let me know how that goes.

image

from gatsby-source-google-places.

jonny-harte avatar jonny-harte commented on July 19, 2024

@franklintarter you've only gone and sorted it! I was able to debug it straight away with the added handle errors. Turns out there was an issue with my Google Cloud billing account that needed resolving, which I've now fixed and been able to successfully deploy. Not sure why the API key was still working locally though... lol

Thanks for all your help!

from gatsby-source-google-places.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.