gatsby-source-medium return the wrong number of posts #22491
Labels
type: bug
An issue or pull request relating to a bug in Gatsby
type: upstream
Issues outside of Gatsby's control, caused by dependencies
Description
On Mar. 23, 2020, I tested a medium account with 4 articles.
gatsby-source-medium
didn't return the number of articles it should have return. It just returned totalCount: 3, which should be 4. Additionally, I tested an account with more than 4 articles, it just returned 4 articles.Then I tried to use
https://medium.com/${nameOfBlogHere}/?format=json&limit=10
. There were just 3 posts not 4.EmaSuriano also seemed to mention this at #17335 (comment)
Steps to reproduce
Medium User
field to the tested account in the Medium, I used@z1219202167
and@Max_Uf
to test.npm run develop
to generate the website, use graphQL to see how many articles or posts inallMediumPost
and compare these data with the actually condition (The number of posts in Medium).Expected result
Data generated by graphQL should list all the post for the account
@z1219202167
because the account has less than 10 article. As for@Max_Uf
, it should be 10 posts.Actual result
However, for the account
@z1219202167
, I got 3 posts. For@Max_Uf
, I got 4 posts.Environment
System:
OS: macOS 10.15.3
CPU: (4) x64 Intel(R) Core(TM) i5-7360U CPU @ 2.30GHz
Shell: 5.7.1 - /bin/zsh
Binaries:
Node: 13.7.0 - /usr/local/bin/node
Yarn: 1.21.1 - /usr/local/bin/yarn
npm: 6.13.6 - /usr/local/bin/npm
Languages:
Python: 3.7.5 - /Users/leonz/anaconda3/bin/python
Browsers:
Chrome: 80.0.3987.149
Firefox: 74.0
Safari: 13.0.5
npmPackages:
gatsby: 2.15.22 => 2.15.22
gatsby-plugin-google-analytics: ^2.1.34 => 2.1.38
gatsby-plugin-manifest: ^2.2.39 => 2.2.48
gatsby-plugin-offline: ^2.0.25 => 2.2.10
gatsby-plugin-preload-link-crossorigin: ^1.0.2 => 1.0.2
gatsby-plugin-react-helmet: ^3.1.21 => 3.1.24
gatsby-plugin-styled-components: ^3.1.18 => 3.1.21
gatsby-plugin-web-font-loader: ^1.0.4 => 1.0.4
gatsby-source-contentful: 2.1.98 => 2.1.98
gatsby-source-medium: ^2.1.20 => 2.1.22
gatsby-transformer-remark: ^2.6.53 => 2.6.59
npmGlobalPackages:
gatsby-cli: 2.7.53
The text was updated successfully, but these errors were encountered: