sakibguy / worked-issues

arget medi a[rpescriptionmedicie] &ssets[dr] (reeeverse._ax:p)
2 stars 0 forks source link

[ORG] SG-MYALICE: Token is invalid or expired #113

Closed sakibguy closed 1 year ago

sakibguy commented 1 year ago

PROB

Not getting response on Postman from https://stage-api.myalice.ai/api/crm/tickets/2983/get-conversation?limit=100&offset=0

SNaP

Screenshot (626) Screenshot (627) Screenshot (628) Screenshot (632)

sakibguy commented 1 year ago

POSTMAN /TOKEN ISSUE

Getting response on logs

I/flutter (12359): *** Response ***
I/flutter (12359): uri: https://stage-api.myalice.ai/api/crm/tickets/2983/get-conversation?limit=100&offset=0
I/flutter (12359): Response Text:
I/flutter (12359): {"success":true,"dataSource":[{"id":"639ee368530a241092f78efd","source":"bot","type":"message","event":null,"platform_type":"facebook_messenger","conversation_id":"m_JS9fqCjxckUEaXDVY3J9oE6MoMJwaz_uVqGmpI3rBU_TyOICY-Y5Mg7264mS0Tb-rZitkQveNxCEos9i2KdExg","timestamp":1671357286778,"platform_id":1361,"project_id":375,"customer_id":1043,"is_seen":false,"is_delivered":false,"success":true,"report":{"recipient_id":"4533558773428509","message_id":"m_JS9fqCjxckUEaXDVY3J9oE6MoMJwaz_uVqGmpI3rBU_TyOICY-Y5Mg7264mS0Tb-rZitkQveNxCEos9i2KdExg"},"admin_id":null,"admin_info":{},"dataV2":{"type":"button","success":true,"error":"","text":"Can back from here..","button":[{"id":0,"type":"postback","title":"first sequence","value":"SEQ5254-1640696317170"},{"id":1,"type":"postback","title":"Button gallery","value":"SEQ5500-1644133268903"},{"id":2,"type":"postback","title":"Button","value":"SEQ7724-1670503828924"}]}},{"id":"639ee368530a241092f78efc","source":"bot","type":"message","event":null,"platform_type":"facebook_messenger","
I/flutter (12359): 
I/flutter (12359): [---ok---] getChats: beforeparse {success: true, dataSource: [{id: 639ee368530a241092f78efd, source: bot, type: message, event: null, platform_type: facebook_messenger, conversation_id: m_JS9fqCjxckUEaXDVY3J9oE6MoMJwaz_uVqGmpI3rBU_TyOICY-Y5Mg7264mS0Tb-rZitkQveNxCEos9i2KdExg, timestamp: 1671357286778, platform_id: 1361, project_id: 375, customer_id: 1043, is_seen: false, is_delivered: false, success: true, report: {recipient_id: 4533558773428509, message_id: m_JS9fqCjxckUEaXDVY3J9oE6MoMJwaz_uVqGmpI3rBU_TyOICY-Y5Mg7264mS0Tb-rZitkQveNxCEos9i2KdExg}, admin_id: null, admin_info: {}, dataV2: {type: button, success: true, error: , text: Can back from here.., button: [{id: 0, type: postback, title: first sequence, value: SEQ5254-1640696317170}, {id: 1, type: postback, title: Button gallery, value: SEQ5500-1644133268903}, {id: 2, type: postback, title: Button, value: SEQ7724-1670503828924}]}}, {id: 639ee368530a241092f78efc, source: bot, type: message, event: null, platform_type: facebook_messenger, conversation_id: m
I/flutter (12359): [---ok---] getChats: _response {success: true, dataSource: [{id: 639ee368530a241092f78efd, source: bot, type: message, platform_type: facebook_messenger, event: null, conversation_id: m_JS9fqCjxckUEaXDVY3J9oE6MoMJwaz_uVqGmpI3rBU_TyOICY-Y5Mg7264mS0Tb-rZitkQveNxCEos9i2KdExg, timestamp: 1671357286778, platform_id: 1361, project_id: 375, customer_id: 1043, is_seen: false, is_delivered: false, dataV2: {type: button, success: true, error: , text: Can back from here.., payload: null, sub_type: null, urls: null, button: [{id: 0, type: postback, title: first sequence, value: SEQ5254-1640696317170}, {id: 1, type: postback, title: Button gallery, value: SEQ5500-1644133268903}, {id: 2, type: postback, title: Button, value: SEQ7724-1670503828924}]}, success: true, report: {recipient_id: 4533558773428509, message_id: m_JS9fqCjxckUEaXDVY3J9oE6MoMJwaz_uVqGmpI3rBU_TyOICY-Y5Mg7264mS0Tb-rZitkQveNxCEos9i2KdExg}, admin_id: null, pusher_key: null, admin_info: {id: null, email: null, avatar: null, full_name: null}}, {id: 639ee3685

SNaP

Screenshot (629)

sakibguy commented 1 year ago

EFFORT 1

Upgrading postman... upgraded.

SNaP

Screenshot (630)

Screenshot (631)

sakibguy commented 1 year ago

EFFORT 2

Bypas s: Debugging to get studio data

SNaP

Screenshot (633)

sakibguy commented 1 year ago

FIXED

Somehow Token wrong printing. Printed token inside getChats

  void getChats({required String id, int limit = 100, int offSet = 0}) async {
    print('[---ok---] getChats:1 id=$id Token $token');

SNaP

Screenshot (636)