question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

External JSON endpoint

See original GitHub issue

Great framework, exporting to static is brilliant. However, I have an use case here which I’m not sure is it covered by the documentation.

My JSON file is hosted in AWS S3, having that said, I’m not able to host put my files in src/data/

I tried to define an absolute path at gatsby-config.js:

{
  resolve: `gatsby-source-filesystem`,
  options: {
    name: `tnc`,
    path: `<absolutepath/>.json`
  }
},

Note: <absoultepath/> is just a reference placeholder.

this doesn’t work as it will prompt me this error. “The path passed to gatsby-source-filesystem does not exist on your file system:”

Is there any reference to my use case?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
KyleAMathewscommented, Sep 8, 2018

Due to the high volume of issues, we’re closing out older ones without recent activity. Please open a new issue if you need help!

0reactions
pungggicommented, Dec 12, 2017

Hi, I may have use case where this error is a bit annoying: I am using netlify-cms to create my data store I then use this data for the build. When I delete all the data of a folder i configured with g-s-fs then of course after pull new data that folder is deleted.

Would you consider, instead of throwing an error, to allow a graceful info message of missing folders?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Creating a Rest API Endpoint based on External JSON format
Creating Complex JSON and XML using DataList and DataItem. Keywords: ▫. Creating a Rest API Endpoint based on External JSON format. Keywords:.
Read more >
Getting started with External API and Webhooks
External API allows you to create workflows that send HTTP requests to external web servers, API endpoints, and URLs.
Read more >
JSON:API — A specification for building APIs in JSON
Clients built around JSON:API are able to take advantage of its features around efficiently caching responses, sometimes eliminating network requests entirely.
Read more >
External API access - RethinkDB
http command reference for documentation for other languages. In this article. Basic usage; Accessing JSON APIs; Storing and enriching API data; Pagination ...
Read more >
Can Squarespace connect to an external Json Rest-API...?
From Squarespace: Squarespace doesn't support server-side code, including PHP, Ruby, Ruby on Rails, and SQL. Therefore, the only way to ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found