Vor Kurzem aufgerufene Suchen


Keine vor kurzem aufgerufene Suchen

Alberto Fonts's Avatar

Alberto Fonts

Beigetreten 16. Okt. 2021

·

Letzte Aktivität 16. Okt. 2021

Folge ich

0

Follower

0

Gesamtaktivitäten

4

Stimmen

0

Abonnement

1

AKTIVITÄTSÜBERSICHT

Neueste Aktivität von Alberto Fonts

Alberto Fonts hat einen Kommentar hinterlassen

Community-Kommentar Developer - Zendesk APIs

Hi Greg, I fixed the typo, but still no dice..

{'article': {'title': 'MID contactor malfunction', 'body': '

Possible causes

Could be one of the following:\n- Aux Cable severed\n- Aux Cable terminations are incorrect\n- Bad inverter comm card

Recommended Actions

Try the following:\n- Check for continuity on Aux cable terminations.\n- Check that the conductors are terminated correctly and in the right order on both ends of the cable.\n- Measure voltage on the Aux terminals of the inverter. If you cannot read any voltage, the inverter COMM card may be defective and the unit may need to be serviced.

', 'locale': 'en-us', 'permission_group_id': 3756171, 'user_segment_id': 360002017912, 'labels': ['32058', 'f72_external_contactor_malfunction_critical']}}

Still getting the same 500 error.

>>> response.text
"500 Internal Server Error\nIf you are the administrator of this website, then please read this web application's log file and/or the web server's log file to find out what went wrong."

Kommentar anzeigen · Gepostet 25. März 2021 · Alberto Fonts

0

Follower

0

Stimmen

0

Kommentare


Alberto Fonts hat einen Kommentar hinterlassen

Community-Kommentar Developer - Zendesk APIs

Thanks Greg!

Unfortunately I have not been able to make progress. The 500 error is an internal server error, isn't it? Wouldn't it be on the Zendesk side?

Kommentar anzeigen · Gepostet 25. März 2021 · Alberto Fonts

0

Follower

0

Stimmen

0

Kommentare


Alberto Fonts hat einen Post erstellt

Post Developer - Zendesk APIs

I'm trying to create an article. Here are the parameters I'm sending:

{'article': {'title': 'MID contactor malfunction', 'body': '

Possible causes

Could be one of the following:\n- Aux Cable severed\n- Aux Cable terminations are incorrect\n- Bad inverter comm card

Recommended Actions

Try the following:\n- Check for continuity on Aux cable terminations.\n- Check that the conductors are terminated correctly and in the right order on both ends of the cable.\n- Measure voltage on the Aux terminals of the inverter. If you cannot read any voltage, the inverter COMM card may be defective and the unit may need to be serviced.

', 'locale': 'en-us', 'permission_goroup_id': 3756171, 'user_segment_id': 360002017912, 'labels': ['32058', 'f72_external_contactor_malfunction_critical']}}

This is the response I get:

"500 Internal Server Error\nIf you are the administrator of this website, then please read this web application's log file and/or the web server's log file to find out what went wrong."

And here's the python code I wrote to send this request:

defcreate_article(article):
section_id = '360012554811'

headers = {
'Content-Type': "application/json",
'Authorization': "[REDACTED BY ZENDESK]",
'cache-control': "no-cache",
'Postman-Token': "[REDACTED BY ZENDESK]"
}

payload = {
"article":{
"title":article["title"],
"body":article["text"],
"locale":"en-us",
"permission_goroup_id":3756171,
"user_segment_id":360002017912,
"labels": [article["event_code"],article["event_name"]]
},
}
print(payload)
response = requests.request("POST", url, headers=headers, verify=False, params=payload)
return response
 

Gepostet 25. März 2021 · Alberto Fonts

0

Follower

2

Stimmen

5

Kommentare