Web service calls return HTTP 500 Internal Server Error on my SharePoint 2013 site

I have a SharePoint site that was running without any problem. Few days ago the search stopped working with an error in the crawl log

The crawler could not communicate with the server. Check that the server is available and that the firewall access is configured correctly

From the ULS log I was able to see that the crawler is trying to call a web service _vti_bin/sitedata.asmx, but it is failing with error HTTP 500 Internal Server Error. I believe because of this failure the crawl is not working in the farm. When I tried to call other built-in webservices in SP2013 (such as lists.asmx?WSDL), I noticed that all the ASMX services have the same problem.

Can anybody please help me to figure out what is going wrong in SharePoint? I tried to see the ULS and event viewer; nothing logged there.

Is there any way I can “reinstall” the ASMX web services in SharePoint?

UPDATE:

The web services are not working on the site collection root site. For any subsite the web services works properly. I am still confused.

Thank you

Is this a threat if website to connect to is in clear in the TLS SNI extension or when using an HTTP proxy?

As per my understanding, after the TCP three-way handshake we send a TLS ClientHello which has the SNI field in clear text and anyone can see which website I am trying to connect to.

Isn’t it a threat that anyone can see my secure website?

The second issue is in case of proxy in between we send the HTTP connect packet, in which we inform the proxy that to which server we need to connect now, again we are clearly mentioning which website to connect.

Also, why there is a need of HTTP connect packet when we have the SNI field from where proxy can find out where it needs to connect?

How to do 301’s with different keywords in new URLs and redirect www.’s AND non www http to https?

I’m moving a 180 page html non https site with http://www and the non www version over to WordPress and to https AND changing the keywords of the URLs in an .htaccess file in Apache

Some of the files are http: //www.site.com/keyword-abc.html

AND sadly some are duplicates of those files but not www. I.e., http: //site.com/keyword-abc.html

So I need to manually find some way to list both the html files

http: //www.site.com/keyword-abc.html

And the

http: //site.com/keyword-abc.html

And…

How to do 301’s with different keywords in new URLs and redirect www.’s AND non www http to https?

HTTP Error 500 While moving to new server

I am moving my Magento 2 website to a new server. The first thing I am doing is installing Magento 2 via cpanel applications and then I am importing my old database into the new setup. At this point I get an HTTP ERROR 500 that says

client denied by server configuration: /home/sbufzn3739o2/public_html/app/etc/config.php

How can I fix this?

Config.php file

<?php return [ 'modules' => [     'Magento_Store' => 1,     'Magento_Directory' => 1,     'Magento_Theme' => 1,     'Magento_Backend' => 1,     'Magento_Variable' => 1,     'Magento_Eav' => 1,     'Magento_AdminNotification' => 1,     'MSP_ReCaptcha' => 1,     'Magento_Config' => 1,     'Magento_Indexer' => 1,     'Magento_AdvancedPricingImportExport' => 1,     'Magento_Search' => 1,     'Magento_Amqp' => 1,     'Magento_Security' => 1,     'Magento_User' => 1,     'Magento_Authorization' => 1,     'Magento_Customer' => 1,     'Magento_Cms' => 1,     'Magento_Quote' => 1,     'Magento_Backup' => 1,     'Magento_Rule' => 1,     'Magento_Catalog' => 1,     'Magento_GraphQl' => 1,     'Magento_BundleImportExport' => 1,     'Magento_CacheInvalidate' => 1,     'Magento_CatalogRule' => 1,     'Magento_SalesSequence' => 1,     'Magento_Integration' => 1,     'Magento_EavGraphQl' => 1,     'Magento_CatalogImportExport' => 1,     'Magento_Payment' => 1,     'Magento_CatalogInventory' => 1,     'Magento_Cron' => 1,     'Magento_Msrp' => 1,     'Magento_CatalogSearch' => 1,     'Magento_CatalogUrlRewrite' => 1,     'Magento_StoreGraphQl' => 1,     'Magento_Widget' => 1,     'Magento_Sales' => 1,     'Magento_Checkout' => 1,     'Magento_Vault' => 1,     'Magento_CmsGraphQl' => 1,     'Magento_CmsUrlRewrite' => 1,     'Magento_CmsUrlRewriteGraphQl' => 1,     'MSP_TwoFactorAuth' => 1,     'Magento_ConfigurableProduct' => 1,     'Magento_CatalogRuleConfigurable' => 1,     'Magento_CatalogGraphQl' => 1,     'Magento_ConfigurableProductSales' => 1,     'Magento_Contact' => 1,     'Magento_Cookie' => 1,     'Magento_Email' => 1,     'Magento_CurrencySymbol' => 1,     'Magento_Paypal' => 1,     'Magento_Analytics' => 1,     'Magento_CustomerGraphQl' => 1,     'Magento_CustomerImportExport' => 1,     'Magento_Deploy' => 1,     'Magento_Developer' => 1,     'Magento_Dhl' => 1,     'Amazon_Core' => 1,     'Magento_DirectoryGraphQl' => 1,     'Magento_Downloadable' => 1,     'Magento_DownloadableGraphQl' => 1,     'Magento_ImportExport' => 1,     'Magento_Authorizenet' => 1,     'Magento_BundleGraphQl' => 1,     'Magento_AdvancedSearch' => 1,     'Magento_Elasticsearch' => 1,     'Magento_Newsletter' => 1,     'Magento_EncryptionKey' => 1,     'Magento_Fedex' => 1,     'Magento_GiftMessage' => 1,     'Magento_GoogleAdwords' => 1,     'Magento_GoogleAnalytics' => 1,     'Magento_Ui' => 1,     'Magento_UrlRewriteGraphQl' => 1,     'Magento_GroupedProduct' => 1,     'Magento_GroupedImportExport' => 1,     'Magento_GroupedCatalogInventory' => 1,     'Magento_GroupedProductGraphQl' => 1,     'Magento_DownloadableImportExport' => 1,     'Magento_AuthorizenetAcceptjs' => 1,     'Magento_InstantPurchase' => 1,     'Magento_CatalogAnalytics' => 1,     'Magento_Inventory' => 1,     'Magento_InventoryAdminUi' => 1,     'Magento_InventoryApi' => 1,     'Magento_InventoryBundleProduct' => 1,     'Magento_InventoryBundleProductAdminUi' => 1,     'Magento_InventoryCatalog' => 1,     'Magento_InventorySales' => 1,     'Magento_InventoryCatalogAdminUi' => 1,     'Magento_InventoryCatalogApi' => 1,     'Magento_InventoryCatalogSearch' => 1,     'Magento_InventoryConfigurableProduct' => 1,     'Magento_InventoryConfigurableProductAdminUi' => 1,     'Magento_InventoryConfigurableProductIndexer' => 1,     'Magento_InventoryConfiguration' => 1,     'Magento_InventoryConfigurationApi' => 1,     'Magento_InventoryDistanceBasedSourceSelection' => 1,     'Magento_InventoryDistanceBasedSourceSelectionAdminUi' => 1,     'Magento_InventoryDistanceBasedSourceSelectionApi' => 1,     'Magento_InventoryElasticsearch' => 1,     'Magento_InventoryGroupedProduct' => 1,     'Magento_InventoryGroupedProductAdminUi' => 1,     'Magento_InventoryGroupedProductIndexer' => 1,     'Magento_InventoryImportExport' => 1,     'Magento_InventoryIndexer' => 1,     'Magento_InventoryLowQuantityNotification' => 1,     'Magento_InventoryLowQuantityNotificationAdminUi' => 1,     'Magento_InventoryLowQuantityNotificationApi' => 1,     'Magento_InventoryMultiDimensionalIndexerApi' => 1,     'Magento_InventoryProductAlert' => 1,     'Magento_InventoryReservations' => 1,     'Magento_InventoryReservationsApi' => 1,     'Magento_InventoryCache' => 1,     'Magento_InventorySalesAdminUi' => 1,     'Magento_InventorySalesApi' => 1,     'Magento_InventorySalesFrontendUi' => 1,     'Magento_InventorySetupFixtureGenerator' => 1,     'Magento_InventoryShipping' => 1,     'Magento_Shipping' => 1,     'Magento_InventorySourceDeductionApi' => 1,     'Magento_InventorySourceSelection' => 1,     'Magento_InventorySourceSelectionApi' => 1,     'Magento_LayeredNavigation' => 1,     'Magento_Marketplace' => 1,     'Magento_MediaStorage' => 1,     'Magento_MessageQueue' => 1,     'Magento_ConfigurableImportExport' => 1,     'Magento_MsrpConfigurableProduct' => 1,     'Magento_MsrpGroupedProduct' => 1,     'Magento_Multishipping' => 1,     'Magento_MysqlMq' => 1,     'Magento_NewRelicReporting' => 1,     'Magento_Captcha' => 1,     'Magento_OfflinePayments' => 1,     'Magento_SalesRule' => 1,     'Magento_PageCache' => 1,     'Magento_ProductAlert' => 1,     'Magento_Braintree' => 1,     'Magento_Persistent' => 1,     'Magento_Reports' => 1,     'Magento_ProductVideo' => 1,     'Klarna_Core' => 1,     'Magento_QuoteAnalytics' => 1,     'Magento_QuoteGraphQl' => 1,     'Magento_ReleaseNotification' => 1,     'Magento_Review' => 1,     'Magento_RequireJs' => 1,     'Magento_SendFriend' => 1,     'Magento_ReviewAnalytics' => 1,     'Magento_Robots' => 1,     'Magento_Rss' => 1,     'Amazon_Login' => 1,     'Amazon_Payment' => 1,     'Magento_SalesAnalytics' => 1,     'Magento_SalesGraphQl' => 1,     'Magento_SalesInventory' => 1,     'Magento_OfflineShipping' => 1,     'Klarna_Ordermanagement' => 1,     'Magento_UrlRewrite' => 1,     'Magento_Elasticsearch6' => 1,     'Magento_CustomerAnalytics' => 1,     'Magento_Wishlist' => 1,     'Magento_SendFriendGraphQl' => 1,     'Magento_InventoryShippingAdminUi' => 1,     'Magento_Signifyd' => 1,     'Magento_Sitemap' => 1,     'Magento_CatalogInventoryGraphQl' => 1,     'Magento_ConfigurableProductGraphQl' => 1,     'Magento_Webapi' => 1,     'Magento_SwaggerWebapi' => 1,     'Magento_SwaggerWebapiAsync' => 1,     'Magento_Swatches' => 1,     'Magento_SwatchesGraphQl' => 1,     'Magento_SwatchesLayeredNavigation' => 1,     'Magento_Tax' => 1,     'Magento_TaxGraphQl' => 1,     'Magento_TaxImportExport' => 1,     'Magento_CheckoutAgreements' => 1,     'Magento_ThemeGraphQl' => 1,     'Magento_Tinymce3' => 1,     'Magento_Translation' => 1,     'Magento_GoogleOptimizer' => 1,     'Magento_Ups' => 1,     'Magento_SampleData' => 1,     'Magento_CatalogUrlRewriteGraphQl' => 1,     'Magento_AsynchronousOperations' => 1,     'Magento_Usps' => 1,     'Magento_Bundle' => 1,     'Klarna_Kp' => 1,     'Magento_Version' => 1,     'Magento_Swagger' => 1,     'Magento_WebapiAsync' => 1,     'Magento_WebapiSecurity' => 1,     'Magento_Weee' => 1,     'Magento_WeeeGraphQl' => 1,     'Magento_CatalogWidget' => 1,     'Dotdigitalgroup_Email' => 1,     'Magento_WishlistAnalytics' => 1,     'Magento_WishlistGraphQl' => 1,     'Temando_Shipping' => 1,     'Vertex_Tax' => 1 ] ]; 

HTTP 404 for REST calls from client side (browsers)

I’m having troubles with the issue of distinguishing between “real” 404s and 404s where the path is correct but the id, for example, doesn’t exist when it comes to client side apps.

Most REST articles and answers here talk about returning a 404 if a resource isn’t found. I do understand that a REST URI points to a specific resource and therefore, whether the requested resource isn’t there (no such id) or the whole path is wrong, 404 is still the response.

The problem is that browsers tend to treat 404s as actual errors before the request even reaches the app code, which pollutes the console and hides real 404s (image isn’t present on the CDN). The second issue is that 400 HTTP codes are described everywhere as client errors. But if the path is correct by an ID is not present, this isn’t technically an error. It’s proper and expected functionality. It looks akin relying on exceptions for logical flow in the code.

Is there a proper way to handle such scenarios, without spamming the browser console?

What should be the http status code for “Service not available in your area” error?

Our service is in 5 cities right now. If someone tries to call our service API from any other city, we want to throw this error Service not available in your area.

The question is, what is the appropriate http code would be for this error?

  • 503: Service Unavailable
  • 403: Forbidden

or something else?

How to check if user is logged in after logging using http post?

I’m developing a Scrap app to extract some information from a sit. To get that information I have to be logged in to that site.

So I use Http post and pass the data needed for login using FormData and log in successfully, so I can browse the private content of that site.

My question Is: “How can I tell if the user is logged in?”. What is the simple way to do that using session cookies or something like that?

I’m currently checking the connection by sending an Http Get Request to a Url that I know is available to registered users.

So before I try to login again, I use this method “isLoggedIn” to check the connection. But it is not perfect, I mean, it seems a kind o tricky and not the best way to do that.

Requisição Http post com Ionic 4 e PHP

Sou iniciante em Ionic e estou fazendo um APP (Ionic 4) e PHP, porém estou com problemas nas requisições POST. As requisições do tipo GET funcionam.

import { Injectable } from '@angular/core'; import { HttpClient, HttpHeaders } from '@angular/common/http'; import { Storage } from '@ionic/storage'; import { map } from 'rxjs/operators';  @Injectable({   providedIn: 'root' })  export class LoginService {    url: String = '';    constructor(     private http: HttpClient,     private storage: Storage   ) {     storage.get('baseUrlApi').then(valor => {       this.url = valor;     });   }      buscarUsuario(usuario, senha) {      let dados = {       usuario: usuario,       senha: senha     };      this.http.post(this.url+"login/entrar", dados).pipe(       map(resultado =>{         return resultado;       })     ).subscribe(valor=>{       console.log(valor['msg'])     });   } } 

Código PHP. (Não está completo porque estou usando um framework, mas fazendo teste na API com PostMan funciona normal)

<?php  header("Access-Control-Allow-Origin: *");    header('Access-Control-Allow-Methods: GET, PUT, POST, DELETE, OPTIONS');  $  usuario = [     "usuario" => $  _POST['usuario'],     "senha" => $  _POST['senha'] ];  echo json_encode($  usuario); 

Esse é o erro:

inserir a descrição da imagem aqui

How do non-blocking HTTP servers work?

My question is based on a few assumptions so please correct me on any of them below

  • I know that TCP has always been socket based
  • In order for a server to maintain that socket, a thread has to block and wait for IO on the server side
  • A modern web server has to handle at least hundreds if not thousands of requests per second
  • Even if the work is spawned off as separate threads with callbacks to the socket thread, this would mean thousands of threads running at a time on the server

Current software engineering, especially reactive frameworks, discourages running lots of threads, so I’m wondering whether modern HTTP servers still run thousands of threads or is there kind of a “reactive” way that they’re handling that many clients at a time?