Code Monkey home page Code Monkey logo

monkeytype-readme's Issues

Use badge with img tag

It would be nice if gh action would work with image tags also. One of the reasons to use image tags is ability to center badges.

<p align=center>
  <a href="https://monkeytype.com/profile/<your_profile_name>">
    <img alt="MonkeyType" src="https://img.shields.io/endpoint?style=flat&url=https%3A%2F%2Fmonkeytype-badge-vhd5lan7mmhz.runkit.sh%3Fmessage%3D83wpm%26label%3D%26logoVariant%3Dtwo">
  </a>
</p>

Monkeytype API response fails JSON parsing

Hi Quang,

I'm seeing this error when running the action:

Error: invalid json response body at https://api.monkeytype.com/users/personalBests?mode=words&mode2=50 reason: Unexpected token < in JSON at position 0

Here is the full output of the action

with:
    monkeytype_api_key: ***
    mode: words
    mode2: 50
    style: for-the-badge
    logoVariant: one
    label: monkeytype
    github_token: ***
Parsing action input...
Getting badge URL...
Error: invalid json response body at https://api.monkeytype.com/users/personalBests?mode=words&mode2=50 reason: Unexpected token < in JSON at position 0

I tried a couple different configurations for the parameters with no luck. I have also tested my Monkeytype API key in Postman and I'm able to get a good response. As I can't get in the code and take a look at the JSON response, I don't really have a great way to debug. Any thoughts?

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.