Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AmazonMQ connection #5

Open
hanman18 opened this issue May 4, 2018 · 1 comment
Open

AmazonMQ connection #5

hanman18 opened this issue May 4, 2018 · 1 comment

Comments

@hanman18
Copy link

hanman18 commented May 4, 2018

I'm having an issue with connecting to AWS amazonMQ. This is the way I've connected:

conn = :stomp.connect('b-xxx.amazonaws.com',61614,'xxx','xxxx')
             :stomp.subscribe('/topic/test',conn,[{'selector','JMSType = \'test\''}])
              f = fn(msg) -> 
                       IO.inspect msg
                    end
              :stomp.on_message(f,conn)
              :stomp.disconnect(conn)

This is the error I receive:

** (FunctionClauseError) no function clause matching in :stomp.get_headers/3

    The following arguments were given to :stomp.get_headers/3:

        # 1
        []

        # 2
        []

        # 3
        -1

    src/stomp.erl:243: :stomp.get_headers/3
    src/stomp.erl:260: :stomp.get_type/2
    src/stomp.erl:217: :stomp.get_message/1
    src/stomp.erl:38: :stomp.connect/4
@dexter0201
Copy link

@hanman18 any luck? I'm facing the same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants