Quantcast
Channel: SCN : Discussion List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 6412

POST oData Problem

$
0
0

I'm trying to use Postman to create a record in a table using an oData service.  I've created a small test table to experiment with.

 

The table created using CD I am able to import data into it:

Region Capture2.png

 

The oData servcie:

service {

 

    "GBI_002.gbi.data::GBI_002.MASTERDATA.TEST" as "Test";

  

 

}

 

Postman:

Region Capture1.png

The error I get is a 403 error and the trace is:

 

[16322]{16322}[-1/-1] 2015-05-31 06:09:47.222759 i TraceContext     TraceContext.cpp(00823) : UserName=, ApplicationName=sap.hana.xs.selfService.user, ApplicationSource=/sap/hana/xs/selfService/user/db/iniParams.xsodata/parameters('login_screen_background_image')

[16322]{16322}[-1/-1] 2015-05-31 06:09:47.222744 e XSRequestHandler RequestHandler.cpp(00753) : exception  1: no.2  (XSEngine/Util/ConnectionPool.cpp:135)

    could not create db connection from sql connection configuration sap.hana.xs.selfService.user::selfService, username not set

exception throw location:

1: 0x00007fda65cc80b8 in odata::DbConnection::init()+0x2e4 at DB.cpp:43 (libxsengine.so)

2: 0x00007fda65ccacd7 in odata::BaseSerializer::buildResult()+0x13 at BaseSerializer.cpp:18 (libxsengine.so)

3: 0x00007fda65c6f5a3 in odata::JsonSerializer::serialize(odata::StringOutStream&)+0x60 at JsonSerializer.cpp:52 (libxsengine.so)

4: 0x00007fda65c6bea0 in odata::SerializationFacade::serialize(odata::RequestContext&, xsengine::WebResponse&)+0x160 at SerializationFacade.cpp:150 (libxsengine.so)

5: 0x00007fda65c0c519 in xsengine::ODataSuffixHandler::execute(xsengine::WebRequestInternal const&, xsengine::WebResponseInternal&, xsengine::ResourceHandler::Context const&, ltt::smartptr_handle<xsengine::RepositoryCache::CachedBinary> const&, odata::tracking::ExecutionTracker&, xsengine::ODataSuffixHandler::DBCleanupCallback*&)+0x645 at ODataSuffixHandler.cpp:218 (libxsengine.so)

6: 0x00007fda65c0e509 in xsengine::ODataSuffixHandler::handleRequest(xsengine::WebRequestInternal const&, xsengine::WebResponseInternal&, xsengine::ResourceHandler::Context const&)+0x2d5 at ODataSuffixHandler.cpp:150 (libxsengine.so)

7: 0x00007fda65bcc220 in xsengine::RequestHandler::handleRequest(ltt::smartptr_handle<xsengine::HttpRequestContext>&, int)+0x39e0 at RequestHandler.cpp:652 (libxsengine.so)

8: 0x00007fda4d59a95e in Execution::JobObjectImpl::run(Execution::JobWorker*)+0x6aa at JobExecutorImpl.cpp:822 (libhdbbasis.so)

9: 0x00007fda4d5a8010 in Execution::JobWorker::runJob(ltt::smartptr_handle<Execution::JobObjectForHandle>&)+0x2f0 at JobExecutorImpl.hpp:459 (libhdbbasis.so)

10: 0x00007fda4d5a9044 in Execution::JobWorker::run(void*&)+0x1a0 at JobExecutorThreads.cpp:376 (libhdbbasis.so)

11: 0x00007fda4d5d7439 in Execution::Thread::staticMainImp(void**)+0x875 at Thread.cpp:488 (libhdbbasis.so)

12: 0x00007fda4d5d7ffd in Execution::Thread::staticMain(void*)+0x39 at ThreadMain.cpp:26 (libhdbbasis.so)

 

I'm able to perform a GET so I don't think it's an authentication problem although the part of the trace that says "username not set" is puzzling.  I've been able to do this before.

 

Any suggestions?

 

Thanks,

 

Ross


Viewing all articles
Browse latest Browse all 6412

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>