Open aspergillus opened 3 years ago
Are you mounting anything at /
?
Can you show me the printed output of your api? Ex: print(plumber::plumb("./start_API/gwas_plumber.R"))
├──[queryString] ├──[body] ├──[cookieParser] ├──[sharedSecret] ├──/Query (GET) ├──/GetData (GET) └──/gene_and_snp (GET)
Do you have any firewall rules in place? Can you provide a reproducible environment where the problem happens? I was not able to reproduce with a digital ocean droplet. Maybe a Dockerfile?
Yes, We have a firewall rules. So till now we haven't open the port from the server. Do we have to open the port for plumber to test our application on server too?
I have deployed plumber on our own CentOS 7 server using pm2 but unable to use swagger after deploy .
With this script have deployed plumber
pm2 start --interpreter="Rscript" /var/www/html/start_API/callapi.R
callapi.R
pm2 status
pm2 log
I have tried reinstalling the swagger and plumber with its dependencies, swagger = TRUE
JS script from where I have to send request to plumber
xhr.open('GET', 'http://127.0.0.1:4409/Query?query=${userquery}&input=${this.selectedAdvance}');
Trying to send xhr request to plumber but getting error always why?????
When run API locally I get two URL. one for plumber and one for swagger in the system netstat and When run API on Server I get only one URL which is for plumber. why this happens?????