Coder Social home page Coder Social logo

Comments (12)

dchristl avatar dchristl commented on July 22, 2024

Hello @johnbaker26222 ,

have you pressed the import button in the upper right corner, too?

image

If you go back (upper left) all changes are discarded.

from macless-haystack.

johnbaker26222 avatar johnbaker26222 commented on July 22, 2024

Hey thanks for the quick response. Yes clicked the import button and it takes me back with no accessories

from macless-haystack.

johnbaker26222 avatar johnbaker26222 commented on July 22, 2024

I also cannot create a new accessory

from macless-haystack.

dchristl avatar dchristl commented on July 22, 2024
  • How many keys have you generated?
  • How long have you waited after the import?
  • Is your fetch-location service running?
  • Do you have any plugins, blocker in your browser? Can you try a different one?
  • Do you see any errors in the console of your Browser (normally F12)?
  • Do you have the same result at my Github-Page?

from macless-haystack.

johnbaker26222 avatar johnbaker26222 commented on July 22, 2024

How many keys have you generated?
6

How long have you waited after the import?
it immediately goes to the page with no accessories

Is your fetch-location service running?
john@Johns-Mac-mini webserver % Using python2
serving at port 6176

Do you have any plugins, blocker in your browser? Can you try a different one?
I tried chrome and firefox same same

Do you see any errors in the console of your Browser (normally F12)?
main.dart.js:4720 Uncaught TypeError: Cannot read properties of undefined (reading 'generateKey')
at main.dart.js:94267:36
at aLm.a (main.dart.js:5999:62)
at aLm.$2 (main.dart.js:43271:14)
at Object.G (main.dart.js:5985:10)
at ah5.acr (main.dart.js:94279:10)
at ah5.oC (main.dart.js:94247:21)
at main.dart.js:94291:14
at aLm.a (main.dart.js:5999:62)
at aLm.$2 (main.dart.js:43271:14)
at Object.G (main.dart.js:5985:10)

Do you have the same result at my Github-Page? When I usee your page it will import. But I cannot get it to fetch location data. I get this error in the console of browser:
Uncaught Error
at Object.aW4 (main.dart.js:7570:24)
at aby.$1 (main.dart.js:101402:53)
at aH5.aAL (main.dart.js:46775:34)
at aH5.O0 (main.dart.js:46777:21)
at aDg.$0 (main.dart.js:46070:11)
at Object.Bq (main.dart.js:6346:40)
at aq.oQ (main.dart.js:45999:3)
at Object.ben (main.dart.js:6446:8)
at auI.$1 (main.dart.js:46227:9)
at aCo.$1 (main.dart.js:50573:21)

from macless-haystack.

johnbaker26222 avatar johnbaker26222 commented on July 22, 2024

When using your page I this error appeared in the chrome console:
main.dart.js:49845 Mixed Content: The page at 'https://dchristl.github.io/headless-haystack/#/' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://<myip>:6176/'. This request has been blocked; the content must be served over HTTPS.
So running chrome with the --allow-running-insecure-content fixed the error and everything worked as it should. So fetching is OK. Not sure what is going on with my local version.
I'm not sure how I'm going to run chrome insecurely on my mobile device though. Is there any way you could host an http version of your page? or implement an SSL connnection for my fetching service?

from macless-haystack.

dchristl avatar dchristl commented on July 22, 2024

OK, I see the problem here. It is because the fetch location service is not served over https, but the github page or your local webserver is. I will have a deeper look into this next week, but it is not so easy to solve. The main problem is that you need a certificate for the fetch location service to avoid the error.

from macless-haystack.

johnbaker26222 avatar johnbaker26222 commented on July 22, 2024

Ok thanks any idea what is causing this error in my local instance?
Uncaught TypeError: Cannot read properties of undefined (reading 'generateKey')

from macless-haystack.

dchristl avatar dchristl commented on July 22, 2024

Sorry, but I have no idea why you have this issue. I've set up a whole new system and followed the guide, downloaded the latest webserver-release and everything works like expected. The only thing you can try is to check all the files with my output:

user@users-iMac-Pro webserver % ls -lR
total 24
-rwxrwxr-x   1 user  staff  3744 Apr 17 19:44 FindMy_proxy.py
-rw-rw-r--   1 user  staff  8073 Apr 13 17:51 apple_cryptography.py
drwxrwxr-x  13 user  staff   416 Apr 17 19:43 web

./web:
total 6480
drwxrwxr-x  7 user  staff      224 Apr 17 19:43 assets
drwxrwxr-x  5 user  staff      160 Apr 17 19:42 canvaskit
-rw-rw-r--  1 user  staff      917 Apr 17 19:43 favicon.png
-rw-rw-r--  1 user  staff    13910 Apr 17 19:42 flutter.js
-rw-rw-r--  1 user  staff     7269 Apr 17 19:43 flutter_service_worker.js
drwxrwxr-x  6 user  staff      192 Apr 17 19:43 icons
-rw-rw-r--  1 user  staff     3855 Apr 17 19:43 index.html
-rw-rw-r--  1 user  staff  3274638 Apr 17 19:43 main.dart.js
-rw-rw-r--  1 user  staff      927 Apr 17 19:43 manifest.json
-rw-rw-r--  1 user  staff       85 Apr 17 19:43 version.json

./web/assets:
total 1784
-rw-rw-r--  1 user  staff      63 Apr 17 19:43 AssetManifest.json
-rw-rw-r--  1 user  staff      82 Apr 17 19:43 FontManifest.json
-rw-rw-r--  1 user  staff  904025 Apr 17 19:43 NOTICES
drwxrwxr-x  3 user  staff      96 Apr 17 19:43 assets
drwxrwxr-x  3 user  staff      96 Apr 17 19:43 fonts

./web/assets/assets:
total 400
-rw-rw-r--  1 user  staff  204339 Apr 17 19:43 OpenHaystackIcon.png

./web/assets/fonts:
total 3216
-rw-rw-r--  1 user  staff  1645184 Apr 17 19:43 MaterialIcons-Regular.otf

./web/canvaskit:
total 13632
-rw-rw-r--  1 user  staff   127110 Apr 17 19:42 canvaskit.js
-rw-rw-r--  1 user  staff  6845886 Apr 17 19:42 canvaskit.wasm
drwxrwxr-x  4 user  staff      128 Apr 17 19:42 profiling

./web/canvaskit/profiling:
total 18040
-rw-rw-r--  1 user  staff   247863 Apr 17 19:42 canvaskit.js
-rw-rw-r--  1 user  staff  8985203 Apr 17 19:42 canvaskit.wasm

./web/icons:
total 104
-rw-rw-r--  1 user  staff   5292 Apr 17 19:43 Icon-192.png
-rw-rw-r--  1 user  staff   8252 Apr 17 19:43 Icon-512.png
-rw-rw-r--  1 user  staff   5594 Apr 17 19:43 Icon-maskable-192.png
-rw-rw-r--  1 user  staff  20998 Apr 17 19:43 Icon-maskable-512.png

Maybe there is an error.

The Https-problem occurs if the host is not localhost. This works - of course - only if the virtual MacOS and the application is on the same machine. I will try to figure out a solution for other hosts in your network. This will take a bit, because the user have to provide its own certificate.

Sorry, but I can't (and want) disable the SSL encryption on the GitHub-page.

from macless-haystack.

johnbaker26222 avatar johnbaker26222 commented on July 22, 2024

Thanks for that I do indeed have all of those files so who knows why my accessories will not import when I run a local server.
I did find a work around for the SSL error. I generated valid certs using letsencrypt and used those with stunnel to intercept the traffic from the FindMyproxy and convert to SSL so the browser would stop complaining. This seems to have worked so I finally have a way to track on my mobile devices.
Next up is to write a python script to send me telegram notifications when my accessories move more than a few KM.
Thanks so much for you work here!

from macless-haystack.

dchristl avatar dchristl commented on July 22, 2024

FYI:
I've added a section about the problem as last paragraph of set up your virtual or real MAC - section. This works with self signed certificates (included), too. Although your solution is a way better, but harder to set up for the most users, especially when server names changes (internal and external name).

I will close this issue now, if you have a follow up problem/ question, just create a new one. Thanks

from macless-haystack.

johnbaker26222 avatar johnbaker26222 commented on July 22, 2024

from macless-haystack.

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.