I tried to deploy my contract on Ropsten TestNet with infura and web3.js, however when I used some functions it returned 405 error.
I notice that maybe I could not use web3.eth.getTransaction() when infura, however when I use following script
this function is called several times.
How can Iavoid the error, do I need to modity web3.min.js (https://github.com/ethereum/web3.js/blob/develop/dist/web3.min.js)? Or is there any way to replace infura?