API and Website Monitor doesn't accept valid URLs #1934

Closed
opened 2026-04-05 16:39:34 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @tankerkiller125 on 5/22/2023

Describe the bug
The API validation only accepts URLs that have no spaces, or no other URL encoding (%20 as an example). Worse if you do include a space it will remove the space without informing the user.

This issue also affects the website monitor

To Reproduce
Steps to reproduce the behavior:

  1. Create a new monitor
  2. Attempt to use an API Monitor
  3. For the URL attempt to use something like https://graph.microsoft.com/beta/admin/serviceAnnouncement/healthOverviews/Exchange%20Online
  4. It won't validate

Expected behavior
It should allow the URL as it's valid.

Screenshots
image

image

Desktop (please complete the following information):

  • OS: All
  • Browser: All
  • Version: All

Additional context
In my case I'm attempting to use the M365 Health API for an internal status page for users to see an overview of everything IT provides. This bug makes it impossible to use the API to pull the information.

*Originally created by @tankerkiller125 on 5/22/2023* **Describe the bug** The API validation only accepts URLs that have no spaces, or no other URL encoding (%20 as an example). Worse if you do include a space it will remove the space without informing the user. This issue also affects the website monitor **To Reproduce** Steps to reproduce the behavior: 1. Create a new monitor 2. Attempt to use an API Monitor 3. For the URL attempt to use something like `https://graph.microsoft.com/beta/admin/serviceAnnouncement/healthOverviews/Exchange%20Online` 4. It won't validate **Expected behavior** It should allow the URL as it's valid. **Screenshots** ![image](https://github.com/OneUptime/oneuptime/assets/3457368/fc91f232-742b-4350-8795-f9f46bb23a00) ![image](https://github.com/OneUptime/oneuptime/assets/3457368/d17a09b3-a5e5-444e-b257-aa84604d1549) **Desktop (please complete the following information):** - OS: All - Browser: All - Version: All **Additional context** In my case I'm attempting to use the M365 Health API for an internal status page for users to see an overview of everything IT provides. This bug makes it impossible to use the API to pull the information.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/oneuptime#1934