Git Product home page Git Product logo

Comments (6)

cooperq avatar cooperq commented on May 28, 2024

we are running a server with EFF and it has worked. Can you first check if the key is authorized in the database? (you need to manually authorize each api key from the server.)

from crocodilehunter.

alphafox02 avatar alphafox02 commented on May 28, 2024

I think what’s happening is a portion is working, however I did have to go change the client api to http and not https because I was getting ssl or mismatch something errors.. once I switched it to http I was able to register and get a key which I confirmed ended up in the config file of the client.

However, after I went and command line dug into the MySQL/marinaDB on the server side I quickly found it was not actually entering any information into any of the api tables. The only thing that was happening is that on the server side if I started and used CH it was in fact populating the db, but nothing was getting populated from the client even though it all appeared to be working.

from crocodilehunter.

alphafox02 avatar alphafox02 commented on May 28, 2024

I’ll check the database again, assuming you mean the key is entered into the db on the server side? If that’s the case I recall checking all api tables and really all tables and not seeing the key or anything from the client anywhere.

from crocodilehunter.

alphafox02 avatar alphafox02 commented on May 28, 2024

Oh wait, now I think I see what you’re saying. When I do the sign up on the client end it generates a key and applies it to the config file. I guess I assumed that key would at the same time be entered in on the server side. That must be the part I’m missing. Just manually go and enter that key into the db?

from crocodilehunter.

alphafox02 avatar alphafox02 commented on May 28, 2024

I tried it out again. I notice now and maybe I wasn’t looking at it correctly last time, but now I can sign up to the server. I assumed the the CH_project variable would have to do with how the data is saved on the server to recall say the project later on the server with map only.

However, I see after signing up that back on the server I check the database and find an entry called crocodilehunter_api and under this table I can see the api users/api towers etc. I check api users and sure enough there’s the api key for the client already there. I go back to the client and push tower with the ch_project specified as default.

I come back to the server and can tower see the nine tower entries under the same crocodilehunter_api table within the api towers section. So that appear to work.

Maybe I’m misunderstanding, but I thought the towers would get saved on the server as the “default” project. Right now that’s not what I’m seeing and if I try to open crocodilehunter_api as the project name I do not see the relevant data I’ve pushed over from the client on the server api map side. Maybe I’m misunderstanding how this all should work.

from crocodilehunter.

cooperq avatar cooperq commented on May 28, 2024

yea no you have it now. It's funny because I'm actually helping someone else out with crocodile hunter now and they are running into all the same bugs. So yea the api data gets sent to a table called api_towers. And there is no good UI to view the data, you just have to view it in mysql.

The entire API was an afterthought that was written in 1 day and I think I need to build a nice dashboard for it and fix some pretty severe bugs. This will be my top priority in crocodile hunter with work going on here in #119

from crocodilehunter.

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.