Skip to content
This repository was archived by the owner on Mar 30, 2020. It is now read-only.
This repository was archived by the owner on Mar 30, 2020. It is now read-only.

bug: BAD HTTP STATUS: 404 on Auth.get_session_token() #74

@maoo

Description

@maoo

I'm trying to run the following code:

def main():
    ''' main program loop '''
    conn = symphony.Config('example-bot.cfg')
    agent, pod, symphony_sid = conn.connect()
    agent.test_echo('test')
    msgFormat = 'MESSAGEML'
    message = '<messageML> hello world. </messageML>'
    agent.send_message(symphony_sid, msgFormat, message)

My example-bot.cfg is:

[symphony]

symphony_pod_uri: https://foundation-dev.symphony.com/pod
symphony_keymanager_uri: https://foundation-dev-api.symphony.com/keyauth
symphony_agent_uri: https://foundation-dev.symphony.com/agent
symphony_sessionauth_uri: https://foundation-dev-api.symphony.com/sessionauth
symphony_p12: xxxx.p12
symphony_pwd: xxxx
symphony_sid: xxxx

This is the error I get

No handlers could be found for logger "symphony.Config"
Traceback (most recent call last):
  File "hello_world.py", line 30, in <module>
    main()
  File "hello_world.py", line 20, in main
    agent, pod, symphony_sid = conn.connect()
  File "/Library/Python/2.7/site-packages/symphony/Config/__init__.py", line 55, in connect
    session_token = auth.get_session_token()
  File "/Library/Python/2.7/site-packages/symphony/Auth/__init__.py", line 43, in get_session_token
    raise Exception('BAD HTTP STATUS: %s' % str(response.status_code))
Exception: BAD HTTP STATUS: 404

I manually tried to invoke https://foundation-dev-api.symphony.com/sessionauth/sessionauth/v1/authenticate and it works as expected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions