Azure Bing Web search fails with Query search

后端 未结 1 467
暖寄归人
暖寄归人 2021-01-19 17:38

I am using the Odata4j. When i try to execute for simple Web search with my query, getting following exeception at last line of the code:

PS: Please voteup if you fi

1条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-19 18:20

    Not much into Java, but I've just got the same error with the implementation for Node.js, and the problem was that I forgot to add single quotes around the query. It should be something like:

    ...&Query='stackoverflow'
    

    so after the URL encoding we have something like:

    ...&Query=%27stackoverflow%27
    

    At least that worked for me.

    0 讨论(0)
提交回复
热议问题