n3mo / massmine

Your Access To Data
GNU General Public License v3.0
73 stars 13 forks source link

Server Mode #14

Open tsadhana9 opened 3 years ago

tsadhana9 commented 3 years ago

Hi, I am trying to use Massmine Server mode. I used the example given in the Massmine Server mode behavior it is working properly but when I am trying with other queries like {"task":"twitter-stream", "geo":'-74,40,-73,41',"count":10} , {"task":"twitter-stream","user":"nasa"} etc,. I am getting the following errors like {"error":"bad argument type"} , {"error":"bad argument type - not a number"},{"error":"client error:406 Not Acceptable"}. I want to use twitter-stream with the parameters query, geo, dur, count.

n3mo commented 3 years ago

I can confirm your error and should be able to take a look at the problem soon.

tsadhana9 commented 3 years ago

Hi,

Could you please try to go through this issue and solve it ?

Thanks & Regards, Sadhana

On Wed, Jan 6, 2021 at 1:07 AM Nicholas M. Van Horn < notifications@github.com> wrote:

I can confirm your error and should be able to take a look at the problem soon.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/n3mo/massmine/issues/14#issuecomment-755102966, or unsubscribe https://github.com/notifications/unsubscribe-auth/AORMFW3ZUY6S6NBCSAHUEHLSYP43JANCNFSM4VM3ONJQ .

n3mo commented 3 years ago

I believe everything should be working now. I've pushed a new version to reflect these (and other) changes. I'm building a new binary release now and will confirm once it's ready for download. Thanks for your patience!

n3mo commented 3 years ago

The updated version (1.3.0) is now available for download. This should hopefully fix all of your issues.

One important point, however: When passing JSON strings to MassMine server, stick with double quotes for strings. So your example above {"task":"twitter-stream", "geo":'-74,40,-73,41',"count":10} should be {"task":"twitter-stream", "geo":"-74,40,-73,41","count":10}

Thanks for reaching out regarding this bug!

tsadhana9 commented 3 years ago

Hi, I tried with the updated version(1.3.0) of massmine.

I am trying the following commands massmine --server=4242 netcat localhost 4242 {"task":"twitter-stream", "geo":"-74,40,-73,41","count":10}

Still I am getting "bad argument type error"

n3mo commented 3 years ago

Copying and pasting your example causes no error for me. Can you confirm that you're not accidentally running a previously installed version (massmine allows for multiple versions to be installed side-by-side... perhaps the old version is on your path and is getting called?).

tsadhana9 commented 3 years ago

Just to verify I installed the latest version(1.3.0) of massmine in different path. In spite of that I am seeing the same error as "Bad Argument Type".

n3mo commented 3 years ago

This is strange indeed. Can you report the output of:

massmine -v
uname -srv
tsadhana9 commented 3 years ago

massmine 1.3.0 Linux 5.8.0-generic

n3mo commented 3 years ago

I believe I found the problem. Try grabbing the installation files from massmine.org again. However, two things:

  1. While the downloadable zip file has been updated, the MD5 checksum on the massmine.org website has not been updated yet. I'll do that soon. The MD5 checksum should be: d3f5a5050eeb72b1162cdd1a96c8ac84
  2. There appears to be a new problem with both streaming API endpoints. In other words, not only is twitter-stream and twitter-sample not working in server mode, they're not working period (at least for me currently). From what I can tell, Twitter is slowly moving everything over to their V2 setup. However, they claim that the legacy API is still available, so I'm not sure why this isn't working for me. If it works for you, please let me know. Otherwise, I'll update this conversation when I have a sense of what's going on.
n3mo commented 3 years ago

The streaming endpoints (twitter-stream and twitter-sample) appear to be working for me now. Perhaps there was an authentication issue temporarily on Twitter's end. In any case, can you confirm if your twitter-stream example is working for you now?

tsadhana9 commented 3 years ago

I downloaded latest version again and checked. Still the twitter-stream is not working for me.