«403», «message»: «Доступ на уровне объекта запрещен» - PullRequest
0 голосов
/ 04 марта 2020

У меня есть действующая лицензия Here, и я использую ее в течение длительного времени. Внезапно у меня был вышеуказанный ответ от сервера. URL-адрес: http://pde.api.here.com/2/matchroute.json?app_id=xxxxxxxxxxxxxxx&app_code=xxxxxxxxxxxx&routemode=car&file=&regions=WEU&release=LATEST

    def connectPost(self, url, data, headers=None):
    return self.S.post(url, data=data, headers=headers , proxies = self.proxy_dict)

Ответы [ 2 ]

1 голос
/ 16 марта 2020

Согласно системе лицензирования и доставки. Срок действия учетной записи истек, поэтому

Cheers, WaliedCheetos

0 голосов
/ 11 марта 2020

Попробуйте, пожалуйста, этот python код (он у меня работает правильно)

# Hello World program in Python
import requests
import json

data = bytes("\n".join([
  'LATITUDE,LONGITUDE',
  '50.875182,4.499943',
  '50.875240,4.499935',
  '50.875302,4.499920',
  '50.875375,4.499893',
  '50.875450,4.499854',
  '50.875527,4.499799',
  '50.875602,4.499728',
  '50.875670,4.499643'
]), 'utf-8')

url = 'http://pde.api.here.com/2/matchroute.json?app_id=xxxx&app_code=xxxxx&routemode=car&regions=WEU&release=LATEST'
resp = requests.post(url, data)
parsed = json.loads(resp.text)
print(json.dumps(parsed, indent=4, sort_keys=True))

Этот код на детской площадке

...