-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Find in files returns error #1315
Comments
$ZV = IRIS for Windows (x86-64) 2023.1 (Build 235_1U) Fri Jun 2 2023 13:30:56 EDT |
Hi @trevorfstrong, I see that you created a WRC ticket for this issue, and that the error message there is different than the one you posed here. Which error message is correct |
It appears to be the invalid json content when attempting to get "find in files" to trigger. |
Thanks for clarifying. Can you use Wireshark or the web gateway's HTTP trace feature to capture the REST request and response that get sent when you try to search through files? The request will be a POST to the /api/atelier/v6//work endpoint. The response will have a 400 Bad Request header. Seeing the body of the request and response will help me diagnose the cause of the issue. |
@trevorfstrong Unfortunately, that doesn't have the oe piece of data that I need. What I need is the body of the request that prompts the 16002 error. I need to check if it's valid JSON. If it is, then there may be a bug on the server. If it's not, then there's a bug in this extension because it should always send JSON. |
Very odd. OMNI:DLS>zw ^%TREV(13) OMNI:DLS>s tRequest={}.%FromJSON(^%TREV(13)) OMNI:DLS>w tRequest.%ToJSON() |
Here are the mods to atelier class at point of error...
|
@trevorfstrong Thanks, that's really helpful. I've identified what the problem is. The client is sending a value for both "project" and "documents". That should never happen. Can you send me the contents of the |
Is this what you want? |
@trevorfstrong Yes, that's what I was looking for! That looks fine to me, so I'm not sure why the extension is sending both "project" and "documents". I will dig into the code when I have time. I think your project source control request is covered by #1312 and #1313. |
Hi @trevorfstrong, I've opened PR #1318 which should fix your issue. If you want to try my fix you can download and install the vsix found here. |
Thanks. that works. |
Have you followed me steps in the README to enable proposed APIs? |
Yep. I see this in the output too. |
Maybe this will help. |
@trevorfstrong I see requests to the /work endpoints so unless you compiled a file at the same time, those requests are searches. The request bodies are still not in that log so I couldn't tell what exactly it was trying to search for. Based on the image, I think you mean to turn off the regex option (the |
Hi Brett. It doesn't matter what i type in or what regex expression i use, nothing shows up in the CSP.log for the work request with that search string. |
Thanks for the screenshots. That vsix definitely works; I'm using it right now in my own workspace. If you see that message then proposed APIs are enabled, so that's not the issue. I'm going to download a community edition container with the same $ZV as your server just to be sure that there's nothing wrong with that version, but I doubt that there is. EDIT: I was able to search against a project using the same server version as you. |
Fixed by deleting the current settings, workspace settings and reconnecting to server/namespace using a virtual folder. |
Type: Bug
Opening my workspace connected to local irishealth system I can open server side files no problem, but find in files action fails and displays this error in the Objectscript output window.
intersystems-community.vscode-objectscript version 2.12.2-beta.2 activating with proposed APIs available.
ERROR #16002: Invalid JSON Content
NOTE: api/atelier/ web app is marked for password authentication only.
Extension version: 1.0.3
VS Code version: Code 1.86.1 (31c37ee8f63491495ac49e43b8544550fbae4533, 2024-02-07T09:08:20.941Z)
OS version: Windows_NT x64 10.0.22631
Modes:
System Info
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
A/B Experiments
The text was updated successfully, but these errors were encountered: