# \[SOLVED\] Twitter Shortcode API error

**URL:** <https://discourse.gohugo.io/t/solved-twitter-shortcode-api-error/7969>\
**Category:** support\
**Created:** [August 15, 2017, 12:33pm UTC](https://discourse.gohugo.io/t/solved-twitter-shortcode-api-error/7969 "2017-08-15T12:33:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jonathan\_Griffin](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/jonathan_griffin/32/8355_2.png) [@Jonathan\_Griffin](https://discourse.gohugo.io/u/Jonathan_Griffin)\
**Post date:** [August 15, 2017, 12:33pm UTC](https://discourse.gohugo.io/t/solved-twitter-shortcode-api-error/7969/1 "2017-08-15T12:33:23Z")

</div>

I am getting some errors on build, as shown below.

I suspect this may be a api limit error due to overuse, however, just wondering if someone who also uses the tweet internal shortcode can check their own build to confirm theirs works ok. The reason I am curious is that wercker also showed the error, and that is a different IP so a little odd.

> ERROR 2017/08/15 13:20:51 Failed to get json resource [https://api.twitter.com/1/statuses/oembed.json?id=771692821606764544](https://api.twitter.com/1/statuses/oembed.json?id=771692821606764544) with error message Failed to retrieve remote file: Forbidden
> 
> ERROR 2017/08/15 13:20:51 error processing shortcode “\_internal/shortcodes/tweet.html” for page “mdpostname.md”: template: \_internal/shortcodes/tweet.html  
> :1:4: executing “\_internal/shortcodes/tweet.html” at \<getJSON "[https://api](https://api)…\>: error calling getJSON: Failed to retrieve remote file: Forbidden

---

<div class="post-metadata">

**Author:** ![Jonathan\_Griffin](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/jonathan_griffin/32/8355_2.png) [@Jonathan\_Griffin](https://discourse.gohugo.io/u/Jonathan_Griffin)\
**Post date:** [August 15, 2017, 1:42pm UTC](https://discourse.gohugo.io/t/solved-twitter-shortcode-api-error/7969/2 "2017-08-15T13:42:17Z")

</div>

Never mind. Managed to track the problem down. When trying to view that tweet in twitter I got:

> Sorry, you are not authorized to see this status.

Not sure why that is, as I can see all the other tweets. Perhaps it was just deleted or something.
