I have written a small code to access the jira projects through python.
I am using atlassian-python-api.
the code is working perfectly fine while running from pycharm, however when i try to run the same code via AWS lambda the output of the call is redirected to login.microsoft.com.
I have even tried using requests package and calling the jira rest api via following authentication mechanisms
1. by combining the username and apitoken and then using base64 encoding of the string
2. also by using the username and apitoken directly.
In both the situations it is transfering the call to microsoft authentication and returning a html code instead of json data.
Is there something i am missing while running the code from lambda?
from atlassian import Jira
jira = Jira( url='https://jira.companyurl', token=api_token)
for p in jira.projects():
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event