I also had the same problem importing SafeMath for solidity compiler version 0.6.12
. I tried refreshing the page as well but it didn't resolve the issue. I've looked around the internet but didn't find any solution that worked for me. So, I decided to look into it myself.
Here's the code snippet with the error here.
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.12;
import 'https://github.com/OpenZeppelin/openzeppelin-contracts/blob/release-v3.3/contracts/math/SafeMath.sol';
contract A{
.... smart contract code ....
.... smart contract code ....
Firstly, I checked OpenZeppelin's SafeMath.sol contracts code. In the code box, I could see the code, but I noticed that if I clicked the RAW button at the top right image showing RAW button, the raw code was taking way too long to load. So I guess that is why REMIX couldn't get the code and hence threw the error Invalid input source specified.
To test this hypothesis, I turned my VPN on to US and clicked on raw code. This time, the raw code loaded fast and the error in REMIX IDE went away. It seems REMIX IDE was able to get the file. Even after I turned off my VPN, REMIX IDE was able to compile the code. The imports seem to be stored in the browser storage, which is not even deleted after a hard refresh.
PS - This is my first stackoverflow answer. Sorry if I missed anything!