CyberSource / CyberSource/cybersource-rest-client-python

loading configuration issue

Open Beginner friendly
#177 1 comment 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.