GithubHelp home page GithubHelp logo

Comments (7)

ekalinin avatar ekalinin commented on July 23, 2024 1

Using 0.8.0 on Manjaro (Arch). Problem is intermittent and I can't spot a pattern yet. Generates fine a number of times, and then stops working when using the exact same command.

@andy-bren Looks like API rate limit exceeded error from GitHub.
This kind of error was handled properly before.

Please, try last version:

Here's how it is handled in 1.0.0:

➜ ./gh-md-toc https://raw.githubusercontent.com/ekalinin/github-markdown-toc.go/master/README.md                                                                                     

Table of Contents
=================

2018/11/13 20:03:06 {"message":"API rate limit exceeded for XX.XX.XX.47. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)","documentation_url":"https://developer.github.com/v3/#rate-limiting"}

To fix it you need to use Personal API Token:

Here's an example:

 ➜ ./gh-md-toc README.md --token="XXXXXXXXXXXXX"                                                                                                                     

Table of Contents
=================

* [github\-markdown\-toc](#github-markdown-toc)
* [Table of Contents](#table-of-contents)
* [Installation](#installation)
  * [Precompiled binaries](#precompiled-binaries)
  * [Compiling from source](#compiling-from-source)
  * [Homebew (Mac only)](#homebew-mac-only)
* [Tests](#tests)
* [Usage](#usage)
  * [STDIN](#stdin)
  * [Local files](#local-files)
  * [Remote files](#remote-files)
  * [Multiple files](#multiple-files)
  * [Combo](#combo)
  * [Depth](#depth)
  * [No escape](#no-escape)
  * [Github token](#github-token)
  * [Bash/ZSH auto\-complete](#bashzsh-auto-complete)
* [LICENSE](#license)

Created by [gh-md-toc](https://github.com/ekalinin/github-markdown-toc.go)

from github-markdown-toc.go.

ekalinin avatar ekalinin commented on July 23, 2024

As far as i see all works:

➥ ./gh-md-toc --version
0.7.0

➥ ./gh-md-toc https://github.com/ekalinin/envirius/blob/master/README.md
Table of Contents
=================

* [envirius](#envirius)
  * [Table of Contents](#table-of-contents)
  * [Idea](#idea)
  * [Features](#features)
* [Installation](#installation)
* [Uninstallation](#uninstallation)
* [Available plugins](#available-plugins)
* [Usage](#usage)
  * [Check available plugins](#check-available-plugins)
  * [Check available versions for each plugin](#check-available-versions-for-each-plugin)
  * [Create an environment](#create-an-environment)
  * [Activate/deactivate environment](#activatedeactivate-environment)
    * [Activating in a new shell](#activating-in-a-new-shell)
    * [Activating in the same shell](#activating-in-the-same-shell)
  * [Get list of environments](#get-list-of-environments)
  * [Get current activated environment](#get-current-activated-environment)
  * [Do something in environment without enabling it](#do-something-in-environment-without-enabling-it)
  * [Export environment into tar archive](#export-environment-into-tar-archive)
  * [Import environment from tar archive](#import-environment-from-tar-archive)
  * [Get help](#get-help)
  * [Get help for a command](#get-help-for-a-command)
* [How to add a plugin?](#how-to-add-a-plugin)
  * [Mandatory elements](#mandatory-elements)
    * [plug\_list\_versions](#plug_list_versions)
    * [plug\_url\_for\_download](#plug_url_for_download)
    * [plug\_build](#plug_build)
  * [Optional elements](#optional-elements)
    * [Variables](#variables)
    * [Functions](#functions)
  * [Examples](#examples)
* [Example of the usage](#example-of-the-usage)
* [Dependencies](#dependencies)
* [Supported OS](#supported-os)
* [Tests](#tests)
* [Version History](#version-history)
* [License](#license)
* [README in another language](#readme-in-another-language)

Created by [gh-md-toc](https://github.com/ekalinin/github-markdown-toc.go)

➥ ./gh-md-toc README.md

Table of Contents
=================

* [github\-markdown\-toc](#github-markdown-toc)
* [Table of Contents](#table-of-contents)
* [Installation](#installation)
  * [Precompiled binaries](#precompiled-binaries)
  * [Compiling from source](#compiling-from-source)
* [Tests](#tests)
* [Usage](#usage)
  * [STDIN](#stdin)
  * [Local files](#local-files)
  * [Remote files](#remote-files)
  * [Multiple files](#multiple-files)
  * [Combo](#combo)
  * [Depth](#depth)
* [LICENSE](#license)

Created by [gh-md-toc](https://github.com/ekalinin/github-markdown-toc.go)

from github-markdown-toc.go.

jean avatar jean commented on July 23, 2024

Yes, can't reproduce the issue, 0.4.8 and 0.7.0

from github-markdown-toc.go.

tiagoad avatar tiagoad commented on July 23, 2024

I'm also reproducing this on 0.8.0 available from homebrew:

$ gh-md-toc --version
0.8.0

$ gh-md-toc https://github.com/ekalinin/envirius/blob/master/README.md

Table of Contents
=================

Created by [gh-md-toc](https://github.com/ekalinin/github-markdown-toc.go)

from github-markdown-toc.go.

hitvoice avatar hitvoice commented on July 23, 2024

same issue on 0.8.0 from homebrew

from github-markdown-toc.go.

andy-bren avatar andy-bren commented on July 23, 2024

Using 0.8.0 on Manjaro (Arch). Problem is intermittent and I can't spot a pattern yet. Generates fine a number of times, and then stops working when using the exact same command.

from github-markdown-toc.go.

pepasflo avatar pepasflo commented on July 23, 2024

Generating blank TOCs for me as well.

$ gh-md-toc https://github.com/ekalinin/envirius/blob/master/README.md

Table of Contents
=================


Created by [gh-md-toc](https://github.com/ekalinin/github-markdown-toc.go)
jpepas@radium$ gh-md-toc --version
0.8.0
jpepas@radium$ which gh-md-toc
/usr/local/bin/gh-md-toc
jpepas@radium$ ls -l /usr/local/bin/gh-md-toc 
lrwxr-xr-x 1 jpepas admin 49 Apr 25 17:58 /usr/local/bin/gh-md-toc -> ../Cellar/github-markdown-toc/0.8.0/bin/gh-md-toc
jpepas@radium$ 

from github-markdown-toc.go.

Related Issues (20)

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.