NBviewer regarding ipynb json as html

I’m hosting my own nbviewer server since I’m inside corporate web. However after the server is up, it can’t even serve a simple empty Notebook. The error is json encoding error. The error message shows that the nbconverter is actually receiving a html but not an ipynb while I did pass in an url to an ipynb. Wondering what’s going wrong here. Thanks.