2

I am writing an API for a website that involves making a request to their API. The link looks like this - https://search.api.company.com/company.content.search.v1.Search/Search. The data looks very weird when viewed in dev tools shows a very odd payload being sent- The payload, as well as a very odd payload being received. My current python code is this

import requests
r = requests.post("https://search.api.company.com/company.content.search.v1.Search/Search")
print(r.text)

And my error is this - gRPC requires HTTP/2

Is there any way to fix this?

2
  • The api is using Http / 2. This might be helpful: stackoverflow.com/questions/44931070/… Commented Jul 17, 2022 at 11:03
  • The question has the grpc and grpc-python tags, and the URL has the same format as a gRPC endpoint, and the error message you get refers to gRPC. Have you tried using gRPC to access this API? Commented Jul 20, 2022 at 18:43

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.