Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getting --> TypeError: 'str' object does not support item assignment #53

Open
sumit2061902 opened this issue Sep 17, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@sumit2061902
Copy link

Description

python3.9 ./src/main.py config.yml
2024-09-17 12:09:51,238 (9442/MainThread) newrelic.core.agent INFO - New Relic Python Agent (9.7.0)
{"message": "Integration start. Using program arguments ['config.yml']", "timestamp": 1726539001254, "level": "info"}
Traceback (most recent call last):
File "/home/tcadmin/newrelic-salesforce-exporter/./src/main.py", line 278, in
main()
File "/home/tcadmin/.local/lib/python3.9/site-packages/newrelic/api/background_task.py", line 111, in wrapper
return wrapped(*args, **kwargs)
File "/home/tcadmin/newrelic-salesforce-exporter/./src/main.py", line 272, in main
run(config, event_type_fields_mapping, numeric_fields_list)
File "/home/tcadmin/newrelic-salesforce-exporter/./src/main.py", line 213, in run
run_once(
File "/home/tcadmin/newrelic-salesforce-exporter/./src/main.py", line 160, in run_once
factory.new_integration(
File "/home/tcadmin/newrelic-salesforce-exporter/src/newrelic_logging/factory.py", line 168, in new_integration
labels['nr-labs'] = 'data'
TypeError: 'str' object does not support item assignment
2024-09-17 12:10:01,327 (9442/MainThread) newrelic.core.agent INFO - New Relic Python Agent Shutdown

Steps to Reproduce

running this command after cloning the repository and making the changes in config..yml -->python3.9 ./src/main.py config.yml

Expected Behavior

it should integrate with salesforce and newrelic

Your Environment

Linux

@sumit2061902 sumit2061902 added the bug Something isn't working label Sep 17, 2024
@shankarlaksh
Copy link

Hi Team, Do we have an update on the above issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants