Giter Club home page Giter Club logo

wakatime-unity's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

wakatime-unity's Issues

Heartbeats throwing errors in Unity 2017.3.1f1 on Windows 10

Hello :)

I'm running Unity 2017.3.1f1 on Windows 10 x64

In addition to these "obsolete" warnings:

image

I get this error for each heartbeat:

ArgumentException: JSON parse error: Invalid value.
UnityEngine.JsonUtility.FromJson[ResponseSchema`1] (System.String json) (at C:/buildslave/unity/build/artifacts/generated/common/modules/JSONSerialize/JsonUtilityBindings.gen.cs:25)
Bengsfort.Unity.WakaTime+<PostHeartbeat>c__AnonStorey0.<>m__0 () (at Assets/Editor/WakaTime.cs:421)
Bengsfort.Unity.WakaTime+RequestEnumerator+<Start>c__Iterator0.MoveNext () (at Assets/Editor/WakaTime.cs:753)
Bengsfort.Unity.WakaTime+AsyncHelper.Execute () (at Assets/Editor/WakaTime.cs:800)
Bengsfort.Unity.WakaTime.OnUpdate () (at Assets/Editor/WakaTime.cs:197)
UnityEditor.EditorApplication.Internal_CallUpdateFunctions () (at C:/buildslave/unity/build/Editor/Mono/EditorApplication.cs:127)

It appears because the response looks like this, which cannot be serialized via JSON:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<title>400 Bad Request</title>
<h1>Bad Request</h1>
<p>The browser (or proxy) sent a request that this server could not understand.</p>

Everything else, including getting the project list seems to work and I can use the info object it tries to send to send a successful hearbeat using Postman.

I played around with the UnityWebRequest using different methods/values and stuff but wasn't able to get it to work.

Any idea, what's going on?

EDIT:
Forgot to mention I tested in a new Project as well

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.