Code Monkey home page Code Monkey logo

Comments (7)

MagicRB avatar MagicRB commented on August 18, 2024

with these changes im able to login through pantalaimon but I still am not able to decrypt messages, will need further digging sadly (I know these are extremely hacky, but you at least know what needs fixing, I'm not able to do it on my own sadly)

@@ -67,14 +67,14 @@
                (path (format "/_matrix/%s/r0/%s" endpoint-category endpoint))
 	       (query (url-build-query-string params))
 	       (filename (concat path "?" query))
-               (url (url-recreate-url
-		     (url-parse-make-urlobj type nil nil host port filename nil data t)))
+               (url (concat "localhost:8080" filename))
                (headers (ement-alist "Content-Type" content-type
                                      "Authorization" (concat "Bearer " token))))
     ;; Omit `then' from debugging because if it's a partially applied
     ;; function on the session object, which may be very large, it
     ;; will take a very long time to print into the warnings buffer.
     ;;  (ement-debug (current-time) method url headers)
+    (message "%s : %s : %s : %s" host port data uri-prefix)
     (plz method url :headers headers :body data :body-type data-type
       :as json-read-fn :then then :else else
       ;; FIXME: Timeout is not necessarily the same as connect-timeout, or shouldn't be.
modified   ement.el
@@ -271,7 +271,7 @@ If no URI is found, prompt the user for the hostname."
                        ;; Parsing error: FAIL_PROMPT.
                        (fail-prompt))))
     (let ((response (condition-case err
-                        (plz-get-sync (concat "https://" hostname "/.well-known/matrix/client")
+                        (plz-get-sync (concat "http://" hostname "/.well-known/matrix/client")
                           :as 'response)
                       (plz-http-error (plz-error-response (cdr err))))))
       (pcase (plz-response-status response)

from ement.el.

alphapapa avatar alphapapa commented on August 18, 2024

Hi, thanks for the kind words, I'm glad you like it.

Some work to this regard has been done already. Please see the branch https://github.com/alphapapa/ement.el/tree/wip/port-tls. If you can help me test it, that would be great; I don't use Pantalaimon myself.

from ement.el.

alphapapa avatar alphapapa commented on August 18, 2024

Forgot to mention that I need to rebase that branch. I'll do that soon.

from ement.el.

MagicRB avatar MagicRB commented on August 18, 2024

ill test afterwards, but for today im leaving, cya

from ement.el.

MagicRB avatar MagicRB commented on August 18, 2024

also as for pantalaimon, i think its due to ement not doing anything with verify requests, because new messages show up fine, though i cant send messages either. It's bizarre through and through 🤷‍♂️

from ement.el.

alphapapa avatar alphapapa commented on August 18, 2024

My understanding is that Pantalaimon is supposed to be a transparent proxy, so clients aren't supposed to need to know about verification, etc. But I haven't used it myself, so maybe I'm wrong. I'll be glad to help support it if I can, but I'll need help from users like you. :)

from ement.el.

alphapapa avatar alphapapa commented on August 18, 2024

Please let me know if that works for you. (Specifying the server's URI prefix doesn't work interactively at the moment, so you'll have to eval (ement-connect ...). If needed, we can figure out a way to do it interactively, as well.)

from ement.el.

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.