[MKTAUT-51] re-generate new token when token is expired for salesforce Created: 23/Oct/19 Updated: 19/Nov/19 Resolved: 13/Nov/19 |
|
| Status: | Closed |
| Project: | Marketing Automation |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 1.0 |
| Type: | Bug | Priority: | Neutral |
| Reporter: | Oanh Thai Hoang | Assignee: | Chuong Doan Huy |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | 0d | ||
| Time Spent: | 3.75d | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
||||||||
| Issue Links: |
|
||||||||
| Template: |
|
||||||||
| Acceptance criteria: |
Empty
|
||||||||
| Task DoD: |
[ ]*
Doc/release notes changes? Comment present?
[ ]*
Downstream builds green?
[ ]*
Solution information and context easily available?
[ ]*
Tests
[ ]*
FixVersion filled and not yet released
[ ] 
Architecture Decision Record (ADR)
|
||||||||
| Bug DoR: |
[ ]*
Steps to reproduce, expected, and actual results filled
[ ]*
Affected version filled
|
||||||||
| Epic Link: | Forms export | ||||||||
| Sprint: | Add-Ons 24 | ||||||||
| Story Points: | 5 | ||||||||
| Description |
|
After running instance for long time, Token of salesforce is expired. We should generate the new one instead.
For salesforce configuration: Session expiration of salesforce is configurable in salesforce admin so we don't really know the real expire time of token And you can manage your token here to re-produce issues:
You need to configure time out token in your connected app as well
Log error: ERROR info.magnolia.marketingautomation.salesforce.client.SalesForceClient 17.10.2019 13:00:47 -- Couldn't get result, response status code is: '400'. ERROR info.magnolia.marketingautomation.salesforce.client.SalesForceClient 17.10.2019 13:00:47 -- Token couldn't be generated for connection of 'salesforce'. java.lang.IllegalStateException: Token couldn't be generated for connection under definition: 'salesforce' with error 'HTTP/1.1 400 Bad Request'. at info.magnolia.marketingautomation.salesforce.client.SalesForceClient.generateToken(SalesForceClient.java:118) ~[magnolia-marketing-automation-salesforce-connector-1.0-SNAPSHOT.jar:?] |