What could cause a ".json is unexpected at this time" error when running a postman collection from command line using newman - command-line

I am attempting to use newman to run postman collection from the command line. I have been successful before, but with this most recent collection I am getting an error. I am using the following command
newman run [urlforjcollection] --reporters cli,json,html --reporter-json-
export C:\outputfile.json --reporter-
html-export C:\outputfile.html -e
c:\QAEnvironment.json
This fails to run and I get the error .json was unexpected at this time. As I said I used this exact command on another collection and it worked fine.
Does anyone know what could case this issue? Is it something wrong with my command or is there some setting in postman that can cause it?

I Googled your error and it seems to be a problem with the command line rather than Postman; specifically, the need to use double quotes while specifying file locations. Try this:
newman run [urlforjcollection] --reporters cli,json,html --reporter-json-
export "C:\outputfile.json" --reporter-
html-export "C:\outputfile.html" -e
"c:\QAEnvironment.json"

Related

Cocoa installation: terminal showing 'Is a directory' error while getting POD file

I am always getting the same error i.e. is a directory when I try to execute the above bash script in the terminal to get pod file.
What can I do?
Thanks
In the first couple lines, you appear to have an errant filepath in your command. Instead of $ /Users/rgf...TestTable.xcodeproj cd, it should have been $ cd. Your shell is complaining because the command–as you've written it–appears to be executing a directory, which isn't possible.

Command 'bison name.y' doesn't work but not give out any error. system path correctly set up

I'm trying to run the command bison file_name.y from PowerShell, but it does not work. the command seems to be executed by the shell in fact the shell returns to ask for input but does not produce any output. I also tried the command bison file_name.y -d but I got the same result. I have checked the system variables and are correctly set. In fact, flex works correctly, for which I followed the same procedure.

Execute sequence of queries from a text file - OrientDB Console

I want to execute queries which are stored in text file on OrientDB console.
I am currently referring to https://github.com/sslavic/orientdb-wiki/blob/master/Console-Commands.md Batch Mode, but getting unrecognized command error.
from the terminal you must go in the folder "bin" of your version of OrientDb
and you must give the command console.bat path of your file.txt
I've tryed with the last snapshot and i've no problem with this console command.
In your file.txt make sure you dont miss any semicolon, probably you have some parsing problem in your file or any othter sintaxt/typo issue, so orient can not find a suitable command for some string, dont know if you can post your code.. but at least update with the full console output.

wget returns with 500: Internal error, but browser works

I am trying to download the contents of this link >
http://goldsmr2.sci.gsfc.nasa.gov/daac-bin/OTF/HTTP_services.cgi?FILENAME=%2Fdata%2Fs4pa%2FMERRA%2FMAT1NXSLV.5.2.0%2F2014%2F01%2FMERRA300.prod.assim.tavg1_2d_slv_Nx.20140103.hdf&FORMAT=TmV0Q0RGLw&BBOX=-16%2C-44%2C-11%2C-40&LABEL=MERRA300.prod.assim.tavg1_2d_slv_Nx.20140103.SUB.nc&FLAGS=&SHORTNAME=MAT1NXSLV&SERVICE=SUBSET_LATS4D&LAYERS=&VERSION=1.02&VARIABLES=u10m%2Cu50m%2Cv10m%2Cv50m
through wget but I get an internal error 500 instead. It works when I paste the url into firefox.
I have tried some options with wget and even using a proxy but nothing seems to work. Help is very much appreciated.
Thank you.
Certain characters have special meaning when used on the command line. For example, if your URL there are several & characters, which tells the shell to run the command before it, and run the next command without waiting for the first one to finish, basally terminating the URL early, and running several other commands from the rest of the URL.
You can avoid these issues by enclosing the URL in single quotes like this, which will prevent the shell from parsing special characters or variables.
wget 'YOUR_URL_HERE'

No output from DOMPDF

I am trying to run DOMPDF from a windows command line. I am using the documentation from the domPDF website as a reference. DOMPDF usage
C:\>php -f C:\dompdf\dompdf.php -- C:\example.html
When I run this command I get nothing. No pdf, no errors, noting. I have tried using the -v and the -d flags to turn the verbosity up. I still get no output, neither to the screen or the command line.
When I run,
C:\>php -f C:\dompdf\dompdf.php -- -l
I actually get a listing of the paper sizes, so PHP is installed and I am correctly calling the dompdf php file.
Does anyone have any ideas on why this would not actually produce output?
The html file is on the C: and has information in it.
Does anyone have any example of running DOMPDF from the command line, or see what I am doing wrong?
Thanks for the help.