Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Allan Bowe
    @allanbowe
    can you access web STPs without using the adaptor?
    cpagrawal
    @cpagrawal
    I am not using any angular js references
    Allan Bowe
    @allanbowe
    Then what makes you think it could be related to angular? Out of curiosity, what references ARE you using?
    cpagrawal
    @cpagrawal
    frankly speaking I am following the steps documented readme
    but I am just getting error here
    all other things are resolved
    the last step I am not able to execute
    Allan Bowe
    @allanbowe
    can you link to the exact readme you are using?
    this step I am getting error
    adapter.call('/Apps/myFirstService', tables, function(err, res) {
    if(err) {
    //Houston we have a problem
    console.log(err);
    } else {
    //res is an object returned from the server
    console.log(res);
    }
    });
    Allan Bowe
    @allanbowe
    and the error is the one you posted about No 'Access-Control-Allow-Origin' header is present on the requested resource. ?
    cpagrawal
    @cpagrawal
    I am starting chrome
    "C:\Program Files\Google\Chrome\Application\chrome.exe" --user-data-dir="C:/Chrome dev session" --disable-web-security
    Allan Bowe
    @allanbowe
    and do you get the warning?
    cpagrawal
    @cpagrawal
    which warning you are talking about
    cpagrawal
    @cpagrawal
    no
    Allan Bowe
    @allanbowe
    did you close all instances of chrome before running the command?
    and do you have the latest (or recent) version of chrome?
    The error you are getting appears to be due to the fact that --disable-web-security is not applied in your browser session
    It's not actually a SAS (or adaptor) issue, as neither of those things can affect same origin policy
    your choices are : 1) launch browser with web security disabled, 2) adjust web server settings to allow cross domain requests from your machine, or 3) serve your web app direct from the SAS Web Server
    cpagrawal
    @cpagrawal
    okay Now I am getting warning
    Allan Bowe
    @allanbowe
    ok :-) should work now hopefully!
    cpagrawal
    @cpagrawal
    let's see
    no I am getting the same error
    :)
    I think I am going to be ram down today, My client will kick me out
    Allan Bowe
    @allanbowe
    I don't understand your last sentence (said, sheepily)
    can you confirm that you can in fact access a stored process on that domain without using the adaptor
    does that give anything?
    cpagrawal
    @cpagrawal
    Yes
    It is working properly
    { "usermessage" : "blank", "logmessage" : "H54S Exception - Input object datain was not found", "requestingUser" : "", "requestingPerson" : "", "executingPid" : 20788, "sasDatetime" : 1794158767.5 , "status" : "inputTableNotFound"}
    Allan Bowe
    @allanbowe
    have you tried adding the port to the hostUrl parameter?
    {hostUrl: 'http://vm00002596:8080/'}
    cpagrawal
    @cpagrawal
    yes, I tried. But I am getting the same error.
    can you help me with this : -
    cors can solve this problem ?
    Allan Bowe
    @allanbowe
    cors IS the problem
    can you try serving from the web server instead?
    do you have access?
    cpagrawal
    @cpagrawal
    you mean localhost ?
    I do not have chrome there .
    Allan Bowe
    @allanbowe
    you don't need a browser there, just to save the .html and .js files into the root
    cpagrawal
    @cpagrawal
    XMLHttpRequest cannot load http://vm00002596:8080/SASLogon/Logon.do. Redirect from 'http://vm00002596:8080/SASLogon/Logon.do' to 'http://vm00002596.solon.prd/SASLogon/login' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://vm00002596' is therefore not allowed access.
    Allan Bowe
    @allanbowe
    use the fully quaified domain in your hostUrl parameter