https://pulumi.com logo
Title
c

cuddly-pharmacist-11587

05/07/2021, 2:20 PM
Hi all - I'm still new to Pulumi, and probably getting over my head a bit. But, I'm looking for a way to use Pulumi to drive my setup of cloud based software such as FiveTran. My approach was to extend ResourceProvider and implement the create method, calling a REST API using the python "requests" library. However, when I do this, I get an exception:
RuntimeWarning: coroutine 'invoke.<locals>.do_rpc' was never awaited
Here's the question on stackoverflow, in case anyone has an answer or suggestion as to what I'm doing wrong here: https://stackoverflow.com/questions/67335936/how-do-you-write-a-pulumi-provider-that-makes-a-rest-api-request-in-pytyon
r

red-match-15116

05/07/2021, 3:24 PM
Hey! Sorry I've seen your message a few times but I really don't know what's going on here. You'll need to share your code and more details because it's not immediayely clear why this would happen
c

cuddly-pharmacist-11587

05/07/2021, 5:41 PM
Thanks Komal! The code I wrote is in the link on stackoverflow. I'll add the remaining items of code to it now (which is the code that calls this) as well as details about the environment.
Ok, the stackoverflow question is updated with a few more details.
r

red-match-15116

05/07/2021, 5:55 PM
Oh interesting okay I think I may have some idea of what’s going on here. I’ll need to dig into it a little more but on the surface it looks like a bug on our side and not your error. I can take a closer look in an hour or so
c

cuddly-pharmacist-11587

05/07/2021, 6:09 PM
Thank you - that would be much appreciated! I've been under the assumption that this is my bug as python is not my native language.