nextPage URL http:/127.0.0.1:9000 on Standalone 3.6

Using Standalone 3.6, when I make a REST API from the console and from web client, the nextPage value is using url http://127.0.0.1:900 instead of the standalone server URL. I am not seeing this problem on developer.backendless.com.

http://192.168.1.14:80/api/v1/data/bob?pageSize=1
{
"offset": 0,
"data": [
{
"created": 1488520171000,
"name": "sdf",
"___class": "bob",
"ownerId": null,
"updated": null,
"objectId": "47018260-4509-C4EF-FFF8-179C5F3BF500",
"__meta": "{\"relationRemovalIds\":{},\"selectedProperties\":[\"created\",\"name\",\"___class\",\"ownerId\",\"updated\",\"objectId\"],\"relatedObjects\":{}}"
}
],
"nextPage": "http://127.0.0.1:9000/v1/data/bob?pageSize=1&offset=1",
"totalObjects": 10
}

Hi Barry,

What is the exact version number so I can try reproducing with that build?

Regards,
Mark

You can find it in properties.ini located in the installation directory. The property name is:

base_stack_version

Mark

base_stack_version=3.6.0-4

platform=linux-x64

Thanks, I am getting an answer for you from the dev team.

Regards,
Mark

Hi Barry,

Can you please provide your backendless.config file? It’s in the apps/backendless/conf directory. You can copy&paste it into this topic or send to support@backendless.com

I made no changes to this file; the file is out of the box as I just downloaded the installerfrom the web site. The file you asked for was not in the backendless/conf folder but did find a file with that name in backendless/htdocs/conf

=====

<configuration>
<connections>
<connection>
<db>main_backendless</db>
<url>localhost:3306</url>
<login>bn_backendless</login>
<password>084ea38443</password>
<maxActive>10</maxActive>
<maxIdle>10</maxIdle>
<minIdle>5</minIdle>
<idleTimeout>600000</idleTimeout>
<idleTestPeriod>60000</idleTestPeriod>
<driver>com.mysql.jdbc.Driver</driver>
</connection>
<connection>
<db>backendless</db>
<url>localhost:3306</url>
<login>bn_backendless</login>
<password>084ea38443</password>
<maxActive>100</maxActive>
<maxIdle>100</maxIdle>
<minIdle>50</minIdle>
<idleTimeout>600000</idleTimeout>
<idleTestPeriod>60000</idleTestPeriod>
<driver>com.mysql.jdbc.Driver</driver>
</connection>
</connections>

&lt;enableSynch&gt;false&lt;/enableSynch&gt;
&lt;repository&gt;
    &lt;relativeLocation&gt;repo&lt;/relativeLocation&gt;
    &lt;urlRelativeAddress&gt;/VERSION/files/PATH/&lt;/urlRelativeAddress&gt;
    &lt;resourcesRelativeLocation&gt;resources&lt;/resourcesRelativeLocation&gt;
    &lt;tmpRelativeLocation&gt;resources/templates/&lt;/tmpRelativeLocation&gt;
    &lt;createDefaultDomain&gt;false&lt;/createDefaultDomain&gt;
    &lt;minUnit&gt;1024&lt;/minUnit&gt;
&lt;/repository&gt;
&lt;console&gt;
    &lt;rootUrl&gt;http://192.168.1.9:80&lt;/rootUrl&gt;
    <allowedHosts>
        &lt;host&gt;http://localhost/&lt;/host&gt;
        &lt;host&gt;https://localhost/&lt;/host&gt;
        &lt;host&gt;http://127.0.0.2/&lt;/host&gt;
        &lt;host&gt;https://127.0.0.2/&lt;/host&gt;
        &lt;host&gt;http://192.168.1.14/&lt;/host&gt;
        &lt;host&gt;http://www.192.168.1.14/&lt;/host&gt;
        &lt;host&gt;https://192.168.1.14/&lt;/host&gt;
        &lt;host&gt;https://www.192.168.1.14/&lt;/host&gt;
        &lt;host&gt;http://192.168.1.9/&lt;/host&gt;
        &lt;host&gt;http://www.192.168.1.9/&lt;/host&gt;
        &lt;host&gt;https://192.168.1.9/&lt;/host&gt;
        &lt;host&gt;https://www.192.168.1.9/&lt;/host&gt;
    </allowedHosts>
&lt;/console&gt;
&lt;server&gt;
    &lt;ipHeader&gt;X-Real-IP&lt;/ipHeader&gt;
    &lt;httpAddress&gt;http://192.168.1.9:80/api&lt;/httpAddress&gt;
    &lt;host&gt;192.168.1.9:80&lt;/host&gt;
    &lt;pagingDefaultSize&gt;100&lt;/pagingDefaultSize&gt;
    &lt;dateFormats&gt;
        &lt;!-- java.util.Date format --&gt;
        &lt;dateFormat&gt;EEE MMM dd HH:mm:ss zzz yyyy&lt;/dateFormat&gt;
        &lt;!-- For Parse.com import. Order is sensitive --&gt;
        &lt;dateFormat&gt;yyyy-MM-dd'T'HH:mm:ss.SSS'Z'&lt;/dateFormat&gt;
        &lt;dateFormat&gt;MM/dd/yyyy HH:mm:ss 'GMT'z&lt;/dateFormat&gt;
        &lt;dateFormat&gt;MM.dd.yyyy HH:mm:ss 'GMT'z&lt;/dateFormat&gt;
        &lt;dateFormat&gt;MM-dd-yyyy HH:mm:ss 'GMT'z&lt;/dateFormat&gt;
        &lt;dateFormat&gt;MM/dd/yyyy HH:mm:ss z&lt;/dateFormat&gt;
        &lt;dateFormat&gt;MM.dd.yyyy HH:mm:ss z&lt;/dateFormat&gt;
        &lt;dateFormat&gt;MM.dd.yyyy HH:mm:ss&lt;/dateFormat&gt;
        &lt;dateFormat&gt;MM-dd-yyyy HH:mm:ss&lt;/dateFormat&gt;
        &lt;dateFormat&gt;MM/dd/yyyy HH:mm:ss&lt;/dateFormat&gt;
        &lt;dateFormat&gt;MM.dd.yyyy&lt;/dateFormat&gt;
        &lt;dateFormat&gt;MM-dd-yyyy&lt;/dateFormat&gt;
        &lt;dateFormat useForResponse=&quot;true&quot;&gt;MM/dd/yyyy HH:mm:ss 'GMT'Z&lt;/dateFormat&gt;
        &lt;dateFormat&gt;MM/dd/yyyy HH:mm&lt;/dateFormat&gt;
        &lt;dateFormat&gt;MM/dd/yyyy&lt;/dateFormat&gt;
        &lt;dateFormat&gt;dd/MMM/yyyy&lt;/dateFormat&gt;
        &lt;dateFormat&gt;dd-MMM-yyyy&lt;/dateFormat&gt;
        &lt;dateFormat&gt;EEEEE, d MMMMM yyyy&lt;/dateFormat&gt;
        &lt;dateFormat&gt;yyyy/MM/d/HH:mm:ss&lt;/dateFormat&gt;
        &lt;dateFormat&gt;yyyy-MM-dd'T'HH:mm:ss&lt;/dateFormat&gt;
        &lt;dateFormat&gt;EEEEE, MMMMM d, yyyy&lt;/dateFormat&gt;
        &lt;dateFormat&gt;MMMMM d, yyyy&lt;/dateFormat&gt;
        &lt;dateFormat&gt;yyyy M d&lt;/dateFormat&gt;
        &lt;dateFormat&gt;yyyyMMMd&lt;/dateFormat&gt;
        &lt;dateFormat&gt;yyyy-MMM-d&lt;/dateFormat&gt;
        &lt;dateFormat&gt;yyyy-M-d, E&lt;/dateFormat&gt;
        &lt;dateFormat&gt;'Date' yyyy-MM-dd&lt;/dateFormat&gt;
        &lt;dateFormat&gt;yyyy-MM-dd'T'HH:mm:ssZ&lt;/dateFormat&gt;
        &lt;dateFormat&gt;yyyy-MM-dd'T'HH:mmZ&lt;/dateFormat&gt;
        &lt;dateFormat&gt;yyyy-MM-dd&lt;/dateFormat&gt;
        &lt;dateFormat&gt;yyyy-'W'w&lt;/dateFormat&gt;
        &lt;dateFormat&gt;yyyy-DDD&lt;/dateFormat&gt;
        &lt;dateFormat&gt;d MMMMM yyyy, HH'h' mm'm' ss's'&lt;/dateFormat&gt;
    &lt;/dateFormats&gt;
    &lt;defaultConfirmationUrl&gt;http://192.168.1.9:80/develop/email-address-confirmed&lt;/defaultConfirmationUrl&gt;
    &lt;zipFileMaxSize&gt;10&lt;/zipFileMaxSize&gt;
    <apiCallTimeout>30</apiCallTimeout>
    &lt;lockImpl&gt;com.backendless.util.sync.RedisSync&lt;/lockImpl&gt;
&lt;/server&gt;
<analytics>
    &lt;workers&gt;20&lt;/workers&gt;
    &lt;db&gt;
        &lt;host&gt;127.0.0.1&lt;/host&gt;
        &lt;port&gt;27017&lt;/port&gt;
        &lt;user&gt;bn_backendless&lt;/user&gt;
        &lt;password&gt;5b0b8c2c8f&lt;/password&gt;
    &lt;/db&gt;
</analytics>


&lt;googleAnalytic&gt;
    &lt;isEnabled&gt;false&lt;/isEnabled&gt;
    &lt;httpClientMaxConnections&gt;50&lt;/httpClientMaxConnections&gt;
&lt;/googleAnalytic&gt;


&lt;social&gt;
    &lt;facebook&gt;
        <authUrl>http://192.168.1.9:80/api/console/social/facebook/authorize</authUrl>
    &lt;/facebook&gt;
    &lt;google-plus&gt;
        &lt;console&gt;
            <authUrl>http://192.168.1.9:80/api/console/social/googleplus/authorize</authUrl>
        &lt;/console&gt;
        &lt;service&gt;
        <authUrl>http://192.168.1.9:80/api/users/social/googleplus/authorize</authUrl>
        &lt;/service&gt;
    &lt;/google-plus&gt;
&lt;/social&gt;
&lt;servercode&gt;
    <apiUrl>http://192.168.1.9:80/api</apiUrl>
    &lt;compressionEnabled&gt;
        &lt;cloud&gt;false&lt;/cloud&gt;
        &lt;debug&gt;false&lt;/debug&gt;
    &lt;/compressionEnabled&gt;
    &lt;debugRedis&gt;
        &lt;host&gt;192.168.1.9&lt;/host&gt;
        &lt;port&gt;7738&lt;/port&gt;
        &lt;connectionPoolSize&gt;10&lt;/connectionPoolSize&gt;
    &lt;/debugRedis&gt;
    &lt;notifyEmail&gt;info@backendless.com&lt;/notifyEmail&gt;
&lt;/servercode&gt;
&lt;messaging&gt;
    &lt;maxRepeat&gt;100&lt;/maxRepeat&gt;
    &lt;messageTimeToLiveSeconds&gt;60&lt;/messageTimeToLiveSeconds&gt;
&lt;/messaging&gt;


&lt;reservedApplications&gt;
    <applications>5</applications>
&lt;/reservedApplications&gt;


&lt;repoFolder&gt;
    &lt;folder&gt;files&lt;/folder&gt;
&lt;/repoFolder&gt;


&lt;files&gt;
    &lt;operation&gt;
        &lt;zip&gt;
            &lt;executionTime&gt;1000&lt;/executionTime&gt;
        &lt;/zip&gt;
        &lt;unzip&gt;
            &lt;executionTime&gt;1000&lt;/executionTime&gt;
        &lt;/unzip&gt;
    &lt;/operation&gt;
&lt;/files&gt;


&lt;import&gt;
    &lt;loadFactor&gt;32&lt;/loadFactor&gt;
    &lt;importTimeout&gt;1800&lt;/importTimeout&gt;     &lt;!-- timeout in seconds --&gt;
&lt;/import&gt;
&lt;migration&gt;
    &lt;directory&gt;repo&lt;/directory&gt;
    &lt;export&gt;
        &lt;timeout&gt;86400&lt;/timeout&gt;
        &lt;destination&gt;
            &lt;url&gt;http://localhost:9000/admin/migrate&lt;/url&gt;
        &lt;/destination&gt;
    &lt;/export&gt;
&lt;/migration&gt;


&lt;monitor&gt;
    &lt;host&gt;localhost&lt;/host&gt;
    &lt;port&gt;2502&lt;/port&gt;
&lt;/monitor&gt;


&lt;version&gt;
    &lt;major&gt;3&lt;/major&gt;
    &lt;minor&gt;6&lt;/minor&gt;
    &lt;patch&gt;0&lt;/patch&gt;
&lt;/version&gt;


&lt;docker&gt;
    &lt;nodejs&gt;
        <allowedHosts>
            &lt;host&gt;localhost&lt;/host&gt;
            &lt;host&gt;http://127.0.0.2/&lt;/host&gt;
        &lt;host&gt;https://127.0.0.2/&lt;/host&gt;
        &lt;host&gt;http://192.168.1.14/&lt;/host&gt;
        &lt;host&gt;http://www.192.168.1.14/&lt;/host&gt;
        &lt;host&gt;https://192.168.1.14/&lt;/host&gt;
        &lt;host&gt;https://www.192.168.1.14/&lt;/host&gt;
        &lt;host&gt;http://192.168.1.9/&lt;/host&gt;
        &lt;host&gt;http://www.192.168.1.9/&lt;/host&gt;
        &lt;host&gt;https://192.168.1.9/&lt;/host&gt;
        &lt;host&gt;https://www.192.168.1.9/&lt;/host&gt;
    </allowedHosts>
    &lt;/nodejs&gt;
&lt;/docker&gt;


&lt;mediaServer&gt;
    &lt;host&gt;media.backendless.com&lt;/host&gt;
    &lt;port&gt;1935&lt;/port&gt;
    <app>mediaAppVod</app>
&lt;/mediaServer&gt;


&lt;timers&gt;
    &lt;task&gt;
        &lt;timeout&gt;30&lt;/timeout&gt;
    &lt;/task&gt;
&lt;/timers&gt;

</configuration>

please fix typos

title: from http:/127.0.0.1:9000 to http://127.0.0.1:9000
bofy: from http://127.0.0.1:900 to http://127.0.0.1:9000

Thanks

Please provide status update

Barry, it appears to be a problem in 3.6.0.4. How critical is it for your code? Can you work around it by calculating the nextPage URL using current offset and page size?

Regards,
Mark

Yes. I can work around the problem. The easiest solution might just be to replace within the URL string “127.0.0.1:9000” with my standalone url.

Yes, that will also work.

Regards,
Mark

I will mark this topic as “works as designed” since there is a workaround you could use.

Mark

Is the problem fixed in the 4.X version?
Why is the 3.X standalone version different from the hosted version?

The 4.x API does not return the “nextPage” property, so yes, you can say it is fixed.

The Pro release is an iteration behind the Cloud version.

Regards,
Mark