MinerGate / minergate-api

GNU General Public License v3.0
50 stars 31 forks source link

Internal Server Error - Login #7

Open ToeFungi opened 7 years ago

ToeFungi commented 7 years ago

Hello,

The following response is received when trying to hit your login endpoint at /1.0/auth/login

{ "code": "InternalError", "message": "Cannot read property 'send' of undefined" }

I am using Insomnia to fire off the request and using the following parameters as stated in your documentation.

Method: POST Headers: Content-Type: application/json Body: { "email": "xxxxxxx@xxxxxx.xxx", "password": "xxxxxxxxx"}

I have tried the request with the optional parameter of totp and obviously as shown above, without the parameter. Either the API documentation is out-dated or the server is having issues.

Please confirm when this issue has been resolved or at least checked out.

ToeFungi commented 7 years ago

BUMP

blooalien commented 7 years ago

Same here. When is this API going to actually WORK? Without a working login method it's basically worthless for any useful purpose. No matter what I try nor how I try it, this response is the one I get also. Exceedingly frustrating!

ToeFungi commented 7 years ago

@bavarin-fleetfoot Please see #8 for a temporary solution

blooalien commented 7 years ago

@ToeFungi I did actually find that "solution" after writing the above, thanks. It gets me into the rest of the API okay, but I cannot ask users to switch their browser to Chrome, and install an extension, and trust it with their login credentials, and copy/paste a token, just to use MY code. Nobody's gonna tolerate that mess... It makes this API pretty much a pointless waste of time.

It's just pathetic that they announce a broken API with such fanfare on their blog, as if it's some big deal or something, complete with a contest and everything, then utterly abandon the thing and ignore all bug reports completely this way, without even having the decency to withdraw the announcement, contest, or API documentation.

They apparently continued work on the API internally, as I find references in their website code to varying versions of the API up to v2.4 and perhaps beyond, yet the version documented here is v1.0 and mostly doesn't even work? Wish I could get back the time I wasted trying to learn this worthless abandoned garbage, but sadly I cannot. I can only abandon it (and MinerGate) myself, as MinerGate has abandoned this API and any potential developers it might have had.

ToeFungi commented 7 years ago

@bavarin-fleetfoot Couldn't agree more. It is sad that these admins are too damn lazy to bother removing updating or even just simply removing the API documentation and relevant links.

danielfnz commented 7 years ago

This api work?

blooalien commented 7 years ago

@danielfnz

This api work?

Sadly, only the public parts of it, last I checked. The login capability is basically broken, and it appears the Minergate API developers have abandoned the project. Without a working login capability, the vast majority of the API is utterly worthless. 😞

danielfnz commented 7 years ago

@blooalien Yes, im tryng to use login and it not work;

turinglabsorg commented 6 years ago

any news?

ToeFungi commented 6 years ago

@futuringco One of the other threads I posted a method of basically figuring out how to get the API working by inspecting network traffic and modelling your requests accordingly. So basically what you want to do is actually login while having your developer tools open and on the network tab, inspect the payload and request method being used. Then simply mimic this on your server.

Hope this helped. I personally gave up on my project. Didn't have the energy to continually try to decipher their API

turinglabsorg commented 6 years ago

@ToeFungi thank you