'API Call error: cannot open the connection

Sometimes when I call API there is an error:

Error in file(con, "r") : cannot open the connection

But when I re-run the chunk several times, it works. Do you know where is the problem or how to solve it?

enter image description here



Solution 1:[1]

Check the permissions that are needed to call API.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 ugur