JSON data from website - json

I'm currently using VB .NET 2010. I'm trying to read data from a JSON request from the website https://tradingpost-live.ncplatform.net/ws/search.json (Guild Wars 2 site).
The website requires you to be logged in via the forums. Even having this in my vb app via a webbrowser object, I am still receiving a 401 Unauthorized error. I assume some sort of cookie is needed???
The biggest issue I have is trying to run the larger search # https://tradingpost-live.ncplatform.net/ws/search.json?text=&levelmin=0&levelmax=80&count=0
This gives me the error "Unable to download search.json from tradingpost-live.ncplatform.net. Unable to open this Internet site. The requested site is either unavailable or cannot be found. Please try again later.
By using Firefox, I can login and view each of these 2 sites without any issues. Any chance I can get a pointer in the right direction? So far I've installed JSON.NET but have no clue how to use it or if I should be doing something else...... almost midnight and my brain is fried!

Related

Forge ARKit: Cannot load model in Unity

With the latest ForgeARKit-update-6-2018.1, I was trying to load my model in Unity, with the sample Unity scene 'loadAtStartup'. I can successfully load the sample models from 'Sandbox', but I couldn't load my model, which was uploaded through script 'test-2legged'.
Error message shows 504, it seems not reaching the service:
AsyncRequestCompleted The remote server returned an error: (504) Gateway Time-out.
UnityEngine.Debug:Log(Object)
Autodesk.Forge.ARKit.RequestQueueMgr:AsyncRequestCompleted(Object, AsyncCompletedEventArgs) (at Assets/Forge/CodeBase/RequestQueue.cs:322)
UnityEngine.UnitySynchronizationContext:ExecuteTasks()
Model URN:
dXJuOmFkc2sub2JqZWN0czpvcy5vYmplY3Q6bWFvbGlua3ppOHM3cnlvZWx4bjVndnR4bjcyZWc2N2l0dGp0a2MvMmZsb29yX0FyYy5pZmM=
[Update 23/4/2019]
I found that I can successfully load the same model with ForgeARKit-update-3-2017.1.2f1. I compare the Forge code in Unity. I think it has something to do with the service URL. The version 6 is fetching models from 'https://developer-api-beta.autodesk.io' while version 3 is fetching from 'https://developer-api.autodesk.io'. Meanwhile the shell script 'test-2legged' is uploading to the latter one ('https://developer-api.autodesk.io'). That is why it counldn'd find the resource. Question here is how can I upload model to the 'beta' ARKit? I tried modifying the URL in script 'test-2legged' but it doesn't work. Below screen-shot is the output of script 'test-2legged' when fetching from 'beta' ARkit. It seems model is uploaded successfully, but some parsing post-work failed. I guess the response format is also changed in the beta version. Is there a beta version of 'test-2legged' scripts (and other Scene Preparation scripts)?
Please comments, Thanks.
This is correct. My apologizes for this, I know we did not documented very well on the server changes.
This update6 assumes you are using the new server under beta right now. The scripts and update 3 are using the legacy server. Note that the 2 servers are not necessarily compatible and store the data in different places, so make sure to always use the same server in Unity as the one you used to prepare the scene. When we will switch everyone to the new server, we will transfer the data from the legacy server to the new server cloud storage.
The Update3 package will still be able to read scenes from the new server, as we make sure the old Unity code stays compatible.
Note as well you need to use SafeBase64 encoded string everywhere. I saw in your description that you are using base64 encoded (not safe). The new server will be more strict of parameters and format, so I encourage you to test your scripts/code on the beta server.
Last, I am working on a new Unity code update, and documentation which will be released next week. Make sure to use this version - it adds support for 3legged, automatic 2/3legged token refresh, and more. If you got scenes failing, please contact me directly and share your models and URN. I'll either test it on my development environment, or look into our log files for the reason to fail. My email address is my first name at autodesk.com
Thank you Cyrille for your help!! I am replying you here as it's easier to insert images.
I replaced the function 'xbase64encode()' with 'xbase64safeencode()', and now it works! However it seems for some model it still responds some error and in that case it cannot be loaded in Unity. (as the image below). I checked the script and I think all the encoding are using SafeBase64. Any clue of that? Or is that caused by my model?
BTW, the loading performance is greatly improved than the legacy version!! It looks almost the same as the web client. Huge Thanks for that!
Good to know that there is going to be an update next week. Yes I will test it and get back to you later.

Chrome HTTP2.0 throws SPDY PROTOCOL ERROR

I'm using Windows 10 Technical preview. I know it's not yet tweeked out to full usage, but here is my problem.
On local IIS I'm developing my web app. It loads most of the data via ASP.NET MVC API. After the upgrade to Windows 10 I started to get
net::ERR_SPDY_PROTOCOL_ERROR
for all AJAX calls to API. The HTML page loads normally, but the dynamic loading of data content fails. I managed to figure it out by starting Chrome with parameters
--use-spdy=off --use-system-ssl
Strange thing is that on the first start I always get this error and have to restart Chrome. Other browsers fail too, but not with specific error. For the transfer there is used HTTP2.0 protocol, which is based on SPDY protocol.
Do I have to turn something off in IIS?
Edit:
Seems like an IIS problem with HTTP2.0. When trying to enter the site from Windows 8.1 I get the same error.
Most people’s reaction to this error would be to reload the web page. We would actually recommend this as a first response. Sometimes this even does work.
Interesting Factoid: SPDY actually stands for “speedy” and is used to reduce a web pages’ load time
If reloading the web pages does not remove the error, then you should close down Google Chrome and restart it. This alone will not really solve the problem because you will need to clear the cache as soon as you restart the browser.
or in cmd clear dns using this command ipconfig/flushdns

Using AFNetwork on a local server?

So I have configured a raspberry pi to use as a hotspot, but the Pi does not have internet access. It should only serve as a hotspot for me to connect through wifi in order to get access to the server I have stored on the raspberry.
I then want to get data from the server, as json, using AFNetwork. The problem is that I get the error code that I don't have an internet connection. I am connected to the raspberry and can view the data on it, but I can't seem to get the data to my app using AFNetwork.
I'm using this example project: http://www.raywenderlich.com/59255/afnetworking-2-0-tutorial and I've changed the base url to an url displaying json through 192.168.etc. If I simply paste the url in the browser I see my json data. Is it possible to use AFNetwork like this or does it require an internet connection?
Thanks!
Edit: I tried going online and doing a request to an url containing json data and it worked fine. So not having internet connection seems to be the issue for AFNetwork.
Update: Seems like the problem was with the Simulator in Xcode. It didn't really like to switch between different networks, so closing it and opening it made the connection possible. In case anyone else is trying to do the same thing.

ibm connections adding a library to comunity

Im trying to make connections 4.5 working with content manager. I guess im quite far away from start finally but there are many things i need to fix.
Sometimes my widgets just doesnt load. It says cannot load widgets-config.xml
when i restart deployment and appsrv everything looks good.
My biggest problem is to add library to community. Because i want to see how workflow works and the id like to create linked library of this. This is what i get when i try to add library widget to the community (linked library widget works well)
CLFWZ0004E: Event 'widget.added' sent to remote lifecycle handler at https://conserv.egroup.local/dm/atom/communities/feed returned bad response: 403 - Forbidden
I guess there is som problem with https access. Can anybody of you guys ever faced this problem? Some hints?
UPDATE-1
After accessing that page from it gives me this :
<td:error>
<td:errorCode>UnsupportedOperation</td:errorCode>
<td:errorMessage>CQL5602: The attempted operation, GET, is not allowed on the resource /communities/feed.
Contact your administrator and provide the incident ID: 1381320497551.
The administrator should forward this information to the application owner.
</td:errorMessage>
</td:error>
So i guess maybe there can be som problem with proxy policies. I tried to make some changes with changes default policy url to *. But still no progress..
Hints?

ms-xhelp not recognised

I'm trying to get to grips with the relatively new help system fronted by Microsoft Help Viewer 1.0.
I've found the SDK (at http://www.microsoft.com/en-us/download/details.aspx?id=14923) and have started working through it. I've used Help Library Manager to add the modified help file in step 9 of the "Walkthrough: Branding Package and Content" tutorial, but step 10 tells me to view help by typing a command into a command prompt that starts "ms-xhelp:///". The command prompt responds with a generic unrecognised command response. Pasting the whole thing into Chrome just does a Google search, so obviously that's not recognising it, and pasting it into Internet Explorer attempts to start doing something but then pops a message up "There was a problem sending the command to the program".
Remarkably, this appears to be the first post on here containing "ms-xhelp", and no tags seem directly relevant.
I do have VS2010 installed and it runs help correctly. If I modify the tail end of the URL the web browser opens in, I can get at the newly installed help file, but piggybacking on something that knows what it's doing is unsatisfactory and doesn't show me where things are going wrong. Does anyone know why the "ms-xhelp" approach isn't working?