Query HTTP Get Datasocket returns error 42

Hello

I currently use the 'DataSocket Read' function to make the HTTP request.

My request is actually to make a HTTP Get request from a particular Web site.

For example:

http://local.yahooapis.com/MapsService/V1/geocode?appid=YD-9G7bey8_JXxQP6rxl.fBFGgCdNjoDMACQA--&stre...

This request fails and the error return code is "Error 42".

However, I have no problem making an HTTP request to other sites.

For example:

http://www.Google.com.SG/search?hl=en&q=datasocket+read+error+42&btnG=search&meta=&AQ=f&OQ=

Can I know what is the reason for this failure happen?

Thank you

How to say

Hi how to say,

I've handled a request for assistance and came across this thread when I was looking for information, do not know if you still need help because it has been a while, but here are the VI, you can use.

The problem of Datasocket was born because the page you are trying to read is actually a Web Service that returns information in XML format. You need to add [text] at the end of the URL for you Datasocket return information in the form of unformatted text. Please see this KB for more information: recovery of a file via FTP or HTTP using DataSocket unformatted text

After that, it is the string manipulations to take the information from latitude and longitude based on information in the returned text.

I hope this helps.

Best regards
Boon Chen

Applications OR the ASEAN engineer

Tags: NI Software

Similar Questions

  • Query HTTP GET returning always with '? ' at the beginning

    Hi all

    I did experiment with the display of HTML content in a BrowserField (5.0) two different ways:

    1. With the help of browserField.requestContent (url);
    2. Retrieve the HTML of "url" using a HTTP GET request and then displaying the HTML retrieved with:
    browserField.displayContent(response, http://localhost);
    

    I would use the method #2 because I want to be able to cache the HTML source in a persistent storage. However, for some reason when I use the #2 method, the HTML returned by the HTTP response contains a '? ' at the very beginning of the response/html:

    ? Founded in 2008, ...
    

    I concluded that the problem is not with my .html page.  The question mark seems to be introduced during the HTTP request/response.  However, when I use the same method #2 to a different URL, say from google.com, the source is returned without an exclamation mark.

    Any ideas?

    I'll just be brief here, because I think you might be capable of that worked for yourself and therefore save me time...

    I suspect that you have a BOM - Byte Order mark, which is used by some Web sites, search wikipedia for more information.

    Anyway, you really want to convert html get UTF - 8 and then give the string to the browser field, because it is not converted into UTF - 8 correctly.  So I suspect that you can only receive input html in the form of bytes, including the Board of Directors and pass directly through to the BrowserField.

    See this thread for more information:

    http://supportforums.BlackBerry.com/T5/Java-development/displaying-UTF-8-string-problem-in-browserFi...

  • Why the HTTP become function returns the error code 63?

    I tried to use the get HTTP function to get the XML file is returned by the api Google MAPS distance-matrix. I got the right answer if I insert the url directly in the browser, but using the get HTTP function, it returns the error 63, why?

    This is my code (the VI is developed on LV2011).

    I guess, the VI GET for use with LabVIEW Web Service, only not to get of the Internet pages.

    Using the simplest way:

    Andrey.

  • trying to browse some of the sites locally that we get the following error: HTTP error 500.19 - Internal Server Error

    HTTP 500.19 - internal error in the server error

    Hello

    We have Windows 2008 R2 Server, 64-Bit

    IIS version: 7.5.7600.16385

    We had several Web sites for our clients on this IIS server.

    While some of the hosted site work properly, but when you try to browse some of the sites locally, we get the following error:

    HTTP 500.19 error - internal error the requested page server is inaccessible because the configuration data of the page are not valid.

    Hello SGTPrasad

    You can find the Server forums on TechNet support, please create a new post at the following link:

    http://social.technet.Microsoft.com/forums/en/category/WindowsServer/

  • I am running XP Home Edition, when I right click on an icon/folder on my desktop, I get a fatal error message of "unable to start this program because it lacks the 'resources' directory or one of its subfolders. __

    I am running XP Home Edition when I right click on an icon/folder on my desktop, I get a fatal error message of «unable to start this program because it lacks the "resources" directory or one of its subfolders» How best to solve this problem without reload my OS which would be suh a pain that I've been running with it for many years and to return to, where I'm now should always be! »

    Right click issues are usually caused by third party software who pushed himself into the context menu. This is more easily managed using the ShellExView free program.

    http://www.nirsoft.net/utils/shexview.html - ShellExView

    Make a right-click is slow or weird behavior caused by context menus management - http://windowsxp.mvps.org/slowrightclick.htm
    Manage the entries in context menu for folders, readers, and the Namespace objects - http://windowsxp.mvps.org/context_folders.htm MS - MVP - Elephant Boy computers - Don ' t Panic!

  • I get the following error: error \mset16g.dll specified module could not be found. I am running XP on top of vmware fusion

    original tittle:msetg.161

    I get the following error: error \mset16g.dll specified module could not be found.  I am running XP on top of vmware fusion

    Hello Salim'sMailbox,.

    ·         When exactly do you receive the error message?

    ·         Did you do changes on the computer before the show?

    Follow these methods.

    Method 1: Perform a clean boot to see if there is a conflict of software like the clean boot helps eliminate software conflicts.

    How to configure Windows XP to start in a "clean boot" State

    http://support.Microsoft.com/kb/310353

    Note: After completing the steps in the clean boot troubleshooting, follow the section How to configure Windows to use a Normal startup state of the link to return the computer to a Normal startupmode.

    After the clean boot used to resolve the problem, you can follow these steps to configure Windows XP to start normally.

    (a) click Start, run.

    (b) type msconfigand click OK.

    (c) the System Configuration Utility dialog box appears.

    (d) click the general tab, click Normal startup - load all services and device drivers and then click OK.

    (e) when you are prompted, click on restart to restart the computer.

    Method 2: Performs a search using the Microsoft safety scanner.

    http://www.Microsoft.com/security/scanner/en-us/default.aspx

    Response with more information to help you further.

  • When I open Internet explorer in windows and I am trying to use facebook or no matter what games, I get a script error has occurred on this page do you still want to run

    Original title: not admissible error in windows

    When I open Internet explorer in windows and I am trying to use facebook or no matter what games, I get a script error has occurred on this page want to still run and also first message is unacceptable, then the error message how can I fix a script if everything they told me to do, tried of thise disable ad ons, enable ad - ons (what I have now) reinstall it IE upgrade to ie and nothing helped think I need to repair my windows xp professional, but do not have the original disc to do, and nowhere on windows can I find a repair tool.

    Hello

    1. don't you make changes on the computer before this problem?
    2. what version of internet explore do you use?
    3. What is the exact error message?

    Step 1: Check if the problem persists in safe mode with networking and send back the same.

    Step 2: Also, look for error messages in the event viewer. If you find error messages after return the exact error message so that we can help you better.

    Reference:
    Using the event viewer
    http://www.Microsoft.com/resources/documentation/Windows/XP/all/proddocs/en-us/snap_event_viewer.mspx?mfr=true

    Understanding of event viewer
    http://www.Microsoft.com/resources/documentation/Windows/XP/all/proddocs/en-us/event_overview_01.mspx?mfr=true

    Procedure to view and manage event logs in Event Viewer in Windows XP
    http://support.Microsoft.com/kb/308427

  • error 14001 itunes not installed correctly, get the Assembly error when you try to reinstall

    installation iTune error

    I tried to install iTunes for the past few days, I have an old one that I have to adjust that give me and error when you try to open "itunes is not installed correctly. "Please re install itunes error 7 (windows error 14001)" so I try to install the new I adjust 10.5 and I get this message

    "a mistake occrred in the installation of the Assembly microsoft.vc80.crt, type is"win32", version +"8.0.50727.6195".publickeytoken ="1fc8b3b9a1e18e3b".
    processorArchitecture = "x 86". See Help and support for more information. HERSULT:0X800736FD ".
    I get very frustrated because I need I tunes to get into my new i pod. I looked for solutions on apple, but nothing came.
    also, I get this error when I try to install the new QuickTime 7.7.1, tried to uninstall itune and whatever it takes like I said here: http://support.apple.com/kb/ht1925, but still, I get the same error when trying to install everything back. I read, you can resolve this error by installing each update Windows but my windows updates also give me an error when I check updates saying ' an error occurred while searching for new updates for your computer or errors found: update code 80080005 windows has encountered an unknown error. " Can someone help me please. I get very frustrated by that. Thanks in advance

    Hello

    I suggest you to return these KB articles and check if it helps.

    http://support.Apple.com/kb/TS3074

    http://support.Apple.com/kb/TS3074

  • system is unable to make a successful restore operation. Get an unspecified error msg.

    system is unable to make a successful restore operation. Get an unspecified error msg. Several points attempted with the same results of restoration.   ??

    Hello

    There are a variety of reasons for system restore problems

    Norton and Norton product Tamper Protection is the main

    Read about it:

    http://us.Norton.com/support/kb/web_view.jsp?wv_type=public_web&docURL=20101101224849EN&LN=en_US

    http://Service1.Symantec.com/support/sharedtech.nsf/pfdocs/2005113009323013

    You can try restoring the system in safe mode

    http://www.windowsvistauserguide.com/system_restore.htm

    Windows Vista

    Using the F8 method:

    1. Restart your computer.
    2. When the computer starts, you will see your computer hardware are listed. When you see this information begins to tap theF8 key repeatedly until you are presented with theBoot Options Advanced Windows Vista.
    3. Select the Safe Mode option with the arrow keys.
    4. Then press enter on your keyboard to start mode without failure of Vista.
    5. To start Windows, you'll be a typical logon screen. Connect to your computer and Vista goes into safe mode.
    6. Do whatever tasks you need and when you are done, reboot to return to normal mode.

    and malware can interfere with the restoration of the system

    Download update and scan with the free version of malwarebytes anti-malware

    http://www.Malwarebytes.org/MBAM.php

    You can also download and run rkill to stop the process of problem before you download and scan with malwarebytes

    http://www.bleepingcomputer.com/download/anti-virus/rkill

    If it does not remove the problem and or work correctly in normal mode do work above in safe mode with networking

    Windows Vista

    Using the F8 method:

    1. Restart your computer.
    2. When the computer starts, you will see your computer hardware are listed. When you see this information begins to tap theF8 key repeatedly until you are presented with theBoot Options Advanced Windows Vista.
    3. Select the Safe Mode with networking with the arrow keys.
    4. Then press enter on your keyboard to start mode without failure of Vista.
    5. To start Windows, you'll be a typical logon screen. Connect to your computer and Vista goes into safe mode.
    6. Do whatever tasks you need and when you are done, reboot to return to normal mode.
  • I have a HP LaserJet 4345 and I get an EIO Error 80.0088. Clues? hard drive?

    Hi all

    I have a HP LaserJet 4345 and I get an EIO Error 80.0088. This could be just a hard drive error?

    Thank you all who responded.

    EIO 80 errors point to a jetdirect question. I believe that all of the 4345 established the network so it can point to a bad trainer.  If the device has a record live map jet, you can simply replace.

    If you can access the configuration page print it to see if the ip address is correct.

    I would like to try, then a cold reboot which will reset all functions return printers factory, including your IP info so that will have to be reinstalled after the cold reset.

    Also take a look at the attached document on the HP jetdirect firmware update.

    http://h20000.www2.HP.com/bizsupport/TechSupport/document.jsp?objectID=bpj05999

  • How to make HTTP GET request socket?

    I want to use socket make HTTP GET, but I always got the error 501 return.

    Result:



    501 method not implemented

    Method not implemented


    to / index.html unsupported.



    Apache/2.0.52 (CentOS) Server at li43-231.members.linode.com Port 80

    Code:

    streamConnection =
    (StreamConnection) Connector.Open (getURL (3) + APN_STR, Connector.READ_WRITE);
               
    create DataOuputStream on the top of the socket connection
    outputStream = streamConnection.openOutputStream ();
    dataOutputStream = new DataOutputStream (outputStream);
               
    Send the HTTP request
    dataOutputStream.writeChars ("GET/index.html http/2.0\n");
    dataOutputStream.writeChars ("host: badev.liveblockauctions.com\n");
    dataOutputStream.writeChars("User-Agent:BlackBerry/3.2.1\n");
    dataOutputStream.writeChars("Content-Language:en-US\n\n");

    dataOutputStream.flush ();
               
    create DataInputStream on top of the socket connection
    inputStream = streamConnection.openInputStream ();
    dataInputStream = new DataInputStream (inputStream);
               
    retrieve the content of the requested server Web page
    int inputChar;
    int size = 0;
    StringBuffer results = new StringBuffer();
    While ((inputChar = dataInputStream.read ())! = - 1) {}
    size ++;
    Results.Append ((Char) inputChar);
    }

    JDE 4.6 and blackberry "BOLD".

    Any suggestion?

    Thank you very much!

  • Attempt to remove e-mail Messages in Windows 7 Live Mail. Used to work but now get "an unknown error has occurred."

    Attempt to remove e-mail Messages in Windows 7 Live Mail.  Used to work but now get "an unknown error has occurred."

    Administrative events Viewer.

    wlmail (5472) WindowsLiveMail0: page of data read from the file "C:\Users\MyName\AppData\Local\Microsoft\Windows Live Mail\Mail.MSMessageStore" at offset 269484032 (0 x 0000000010100000) (page 32895 (0x807F) the database) to 8192 bytes (0 x 00002000) failed verification because it contains no page data. The read operation will fail with Error - 1019 (0xfffffc05). If this condition persists then please restore it from a previous backup. This problem is probably due to a defective material. For further assistance diagnosing the problem, contact your hardware vendor.

    Hello

    Because the problem is with Windows Live Mail, I suggest you to post your query on the Windows Live community forums to get help.
    http://www.windowslivehelp.com/product.aspx?ProductID=15

    Kind regards
    Afzal Taher
    Microsoft technical support engineer

  • I can't send a fax. I get a script error.

    I have a windows 7 x 64 computer with windows 2008 server standard.  I have setup the server with the fax server role.  I can connect the Windows 7 workstation and Windows scanning on the Fax Server.  When I try to send a fax but I get the following error:

    Script error
    An error occurred in a script on this page.
    Line of 2126
    1 tank
    Error: Argument or invalid procedure call.
    Code: 0
    URL: res.//leframe.dll/preview.js

    I completely reinstalled Windows 7 x 64 thought, that the files were corrupt, but I still get the same error.  I've uninstalled and reinstalled Fax and Scan and run SFC and no corrupted files were found.

    I was wondering if the cause of the problem is the fact that the folder my documents is re-located to a folder of data networking, because who has moved fax and my documents folders.
    Any suggestions?

    Hi Jonathan,.

    The question you posted would be better suited in the TechNet Forums. I would recommend posting your query in the TechNet Forums:

    http://social.technet.Microsoft.com/forums/en-us/category/WindowsServer

  • HI, I am unable to see all tabs within the ACC, getting the following error

    I can't see all of the tabs within the ACC, get the following error.

    ERROR [ComponentAgent] request URL:

    http://Sathya-PC:8080/dyn/init - session failed to return a valid session.

    Please check your settings for siteHttpServerName, siteHttpServerPort,.

    webApplicationPrefix and initSessionURL for the component

    / ATG/devtools/DevSessionManager/_2/ATG/devtools/ComponentAgent

    ServerPort : 8860

    server name : localhost

    Note : I've included the DCS in manifest and run domain controllers in SQL

    Please help me in this edition


    Thank you

    Thanks for your reply,

    The port is correct, dropping the DAS, DPS, DCS, DSS and run DAS, DPS, DCS, DSS.

    Now its works very well.

    Thank you

    Sudharsan.s

  • Clicking on LOV getting Houston-27122 error:

    Hi all

    I created on VO.

    SQL of VO
    Select vendor_id, $vendor_name
    of po_vendors
    in my page created
    1 item LOV (itemid: VendorName)
    2. value of form (itemid: vendorId)
    Mapping now defined as below

    Mapping1:
    LOV box item: VendorNameLOV (this is the region LOV itemId)
    Goods return: VendorName (Base page itemId)
    Point of criteria: VendorName (Base page itemId)
    Mapping2:
    LOV box item: VendorIdLOV (this is the region LOV itemId)
    Goods return: vendorId (Base page itemId)
    Point of criteria: VendorName (the basic page LOV element itemId)
    Problem is when I get a % in my element LOV and tab I get the below error:
    -------------------------------------------------------------------------------------------
    oracle.apps.fnd.framework.OAException: oracle.jbo.SQLStmtException: 27122 Houston: SQL error in the preparation of the statement. Statement: SELECT * FROM (select vendor_id, po_vendors $vendor_name) QRSLT WHERE ((VENDOR_ID =: 1 AND UPPER ($vendor_name) as UPPER(:2) AND ($vendor_name like: 3 OR $vendor_name as: 4 OR $vendor_name as: 5 OR $vendor_name as: 6))) at oracle.apps.fnd.framework.OAException.wrapperException (unknown Source) at the oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException (Unknown Source) at oracle.apps.fnd.framework.webui.OAPageErrorHandler.processErrors (unknown Source) at the oracle.apps.fnd.framework.webui.OAPageBean.processRequest (Unknown Source) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage (unknown Source) at the oracle.apps.fnd.framework.webui.OAPageBean.preparePage (Unknown Source) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage (unknown Source) at OA. jspService(_OA.java:71) to (com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59) to oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462) to oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594) to oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518) to javax.servlet.http.HttpServlet.service(HttpServlet.java:856) to com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713) to com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370) to com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871) to com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453) to com.evermind.server.http.HttpRequestHandler.serveOneRequest) HttpRequestHandler.java:221) to com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:122) to com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:111) to oracle.oc4j.network.ServerSocketReadHandler$ (ServerSocketReadHandler.java:260) SafeRunnable.run to com.evermind.util.ReleasableResourcePooledExecutor$ MyWorker.run (ReleasableResourcePooledExecutor.java:303) at java.lang.Thread.run(Thread.java:595) # # 0 in detail java.sql.SQLException: ORA-01722: invalid number

    The question is what criteria of search, I entered it is taking that and comparing with vendorid and why it is any mistake out. Ideally it should compare everything I get the LOV point against VendorName. Please note that if I change the map to:

    Mapping2:
    LOV box item: VendorIdLOV (this is the region LOV itemId)
    Goods return: vendorId (Base page itemId)
    ----------------------------------------------------------------------------------------
    Point of criteria: VendorName (the basic page LOV element itemId)
    ----------------------------------------------------------------------------------------
    If I take on property then all works well if I get exception saying contestable mode developer criterion should be to point LOV... Help, please.

    Hello

    By default, lov input element ID is set as a criteria for LOV of entry point.

    For others where you simply return values, you must specify the critirea item property that you
    already done.

    Thank you
    Gerard

Maybe you are looking for

  • my iphone

    How can I activate phone i if the owner is not moo

  • ProBook 4740 s: driver for unknown device (Probook 4740 s WIN10)

    Hello I am updating a Probook s 4740 to 10 windows, but I can't find the driver for an unknown device: USB\VID_138A & PID_003D\0030EACE788E Can someone help me?

  • Changing result data Access to SQL Server database

    For many years, we have worked with the Access databases.Now, we started with SQL-Server.We only have a UutResultTable and a StepResultTable(because we have already started with TestStand 1.02). We have worked with integers as Primarykey (UutResultId

  • Ethernet-meet Windows Dell and Apple OSX

    Can I connect a Mac Apple laptop with internet, a Dell Windows laptop with no internet, using a cable Ethernet/Crossover, to access internet on Dell Windows?

  • Updated Inspiron 3847 of Win 7 Pro to Win Pro 8.1

    We recently purchased Inspiron 3847 4 to replace some machines XP being retired. They came with Windows 7 Pro installed and a «license for Windows 8.1 Pro» Each came with a DVD titled: Operating system Already installed on your computer, Recovery med