Closed senithdesilva closed 8 months ago
@senithdesilva salesforce offers their docs for enabling and using logfile monitoring on an account. In salesforce you need to make sure that the account is enabled to generate logfiles, and create a"connected app" (or use an existing one) to obtain your consumer key and secret.
In Salesforce NOTE: depending on you version of salesforce (classic, lightning, etc.) these instructions may vary.
Security Token
make note of it. if you don'y have the token, go to 'Settings' from top right, and in the top left (Quick Find) type 'Reset'. you should get an option for 'Reset My Security Token'. select that and reset your token. you should get the token in an email.In New Relic logfile agent
"token_url"
is correctThanks @shahramk, will go through this and give it a go.
@senithdesilva did you fix the issue? Also, we released a new version last week: https://github.com/newrelic/newrelic-logs-salesforce-eventlogfile/releases/tag/1.0.0
Closing due to inactivity.
Hi there,
I am trying to create a test integration with Salesforce and I have been following the instruction in this repo, but unable to proceed due to the following issue.
its returning the following response..
<!doctype html>
Error stack
Traceback (most recent call last): File "/Users/sedesilva/dev/repo/newrelic/newrelic-logs-salesforce-eventlogfile/src/__main__.py", line 102, in <module> main() File "/Users/sedesilva/dev/repo/newrelic/newrelic-logs-salesforce-eventlogfile/src/__main__.py", line 79, in main integration.run() File "/Users/sedesilva/dev/repo/newrelic/newrelic-logs-salesforce-eventlogfile/src/newrelic_logging/integration.py", line 48, in run if not client.authenticate_with_password(sfdc_session): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/sedesilva/dev/repo/newrelic/newrelic-logs-salesforce-eventlogfile/src/newrelic_logging/salesforce.py", line 175, in authenticate_with_password resp_json = resp.json() ^^^^^^^^^^^ File "/Users/sedesilva/Library/Python/3.11/lib/python/site-packages/requests/models.py", line 910, in json return complexjson.loads(self.text, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/json/__init__.py", line 346, in loads return _default_decoder.decode(s) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/json/decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/json/decoder.py", line 355, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
im using the password grant type
Could anyone help?
FYI, i'm using python3, if that makes any diff.