Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8710567
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T04:39:30+00:00 2026-06-13T04:39:30+00:00

On the command line I try this: curl –user admin:admin -XGET http://localhost:2480/query/demo/sql/select from Profile/20/*:-1

  • 0

On the command line I try this:

curl --user admin:admin -XGET "http://localhost:2480/query/demo/sql/select from Profile/20/*:-1"

And get this

from Profile/20/*:-1"
from 500 Internal Server Error
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Date: Wed Oct 17 10:25:57 CDT 2012
Content-Type: text/plain; charset=utf-8
Server: OrientDB Server v.1.2.0 (build 12659)
Connection: Keep-Alive
Content-Length: 72

java.lang.StringIndexOutOfBoundsException: String index out of range: -1

Then I try this:

curl --user admin:admin "http://localhost:2480/query/demo/sql/select from Profile/20/*:-1"

And get this

java.lang.StringIndexOutOfBoundsException: String index out of range: -1

Edit:

I’m using the 1.2.0 version in ubuntu 12.04

Edit 2:

if I access from google chrome to:

http://localhost:2480/query/demo/sql/select%20from%20Profile/20/*:-1

It works. So I think is something in the curl request.

Edit 3:

I try adding this headers and the same error came out

Accept:text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Charset:ISO-8859-1,utf-8;q=0.7,*;q=0.3
Accept-Encoding:gzip,deflate,sdch
Accept-Language:en-US,en;q=0.8
Authorization:Basic YWRtaW46YWRtaW4=
Cache-Control:max-age=0
Connection:keep-alive
Cookie:OSESSIONID=-
Host:127.0.0.1:2480
User-Agent:Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.19 (KHTML, like Gecko) Ubuntu/12.04 Chromium/18.0.1025.168 Chrome/18.0.1025.168 Safari/535.19
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T04:39:32+00:00Added an answer on June 13, 2026 at 4:39 am

    The white spaces must be replaced by %20

    Bad query:

    curl --user admin:admin "http://localhost:2480/query/demo/sql/select from Profile/20/*:-1"
    

    Good query

    curl --user admin:admin "http://localhost:2480/query/demo/sql/select%20from%20Profile/20/*:-1"
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i try this command line xcopy e:\myfolder /EXCLUDE:excludeList.txt \\192.168.158.15\public\comp\myfolder /E/I/D/R/H/Y the command copy all
When I try to print the $_SERVER variable from a command line php, it
Everytime I try to create the following table in MySQL command line: CREATE TABLE
If I try to run xcodebuild from the command line, I receive the message:
I try to dump my data thought php script but without command line. SO
I try to output my .php files from the command line and I want
I'm having trouble getting command line arguments passed to Python programs if I try
This is really frustrating - I can build my native code from command line,
When I try this test case: $sel->is_text_present_ok(foo, ($testname: line , __LINE__)); I want to
Via command line, I usually do this: cp -rRp /path/to/a\_folder/. /path/to/another\_folder This copies just

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.