CyberSource / CyberSource/cybersource-rest-client-python
loading configuration issue
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 24
- Forks
- 42
- Avg merge
- 29m
- Merged PRs (30d)
- 1
Description
version 0.0.73 introduced an issue
this fails with True/False variables.
I have setting "use_metakey": False,
which triggers the error
malformed node or string on line 1: <ast.Name object at 0x7fe137201c50>
authenticationsdk/core/MerchantConfiguration.py line 617
self.logger.info("Mconfig > " + str(ast.literal_eval(json.dumps(details_copy))))
reverting to 0.0.72 fixes the issue
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in authenticationsdk/core/MerchantConfiguration.py at line 617 and trace how the use_metakey setting with a False value reaches the logging expression. Reproduce the failure on version 0.0.73 and compare with 0.0.72; the fix is complete when configurations containing True/False values load without the malformed node or string error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 64/100